From 7d7dd89c703dcc6d23a8d0c83b727cc9df7b71f5 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 16 Aug 2020 11:32:23 +0100 Subject: [PATCH] Fixed issue for incorrect operation of erase(const_iterator, const_iterator) when the terminating iterator was end() for etl::unordered_map, etl::unordered_multimap, etl::unordered_set and etl::unordered_multiset. --- include/etl/unordered_multimap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/etl/unordered_multimap.h b/include/etl/unordered_multimap.h index f1dc9bac..8810bc8a 100644 --- a/include/etl/unordered_multimap.h +++ b/include/etl/unordered_multimap.h @@ -926,7 +926,7 @@ namespace etl local_iterator icurrent = first_.get_local_iterator(); local_iterator iend = last_.get_local_iterator(); // Note: May not be in the same bucket as icurrent. - // Find the node previous to the first one. + // Find the node previous to the first one. while (iprevious->etl_next != &*icurrent) { ++iprevious;