Skip to content

Commit 60c371c

Browse files
committed
Add missing assert,
1 parent a8bbd15 commit 60c371c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parallel_hashmap/phmap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,7 @@ class raw_hash_set
16271627
// This overload is necessary because otherwise erase<K>(const K&) would be
16281628
// a better match if non-const iterator is passed as an argument.
16291629
iterator erase(iterator it) {
1630+
assert(it != end());
16301631
auto res = it;
16311632
++res;
16321633
_erase(it);

0 commit comments

Comments
 (0)