Skip to content

Commit

Permalink
pr comment: restore assert
Browse files Browse the repository at this point in the history
  • Loading branch information
sears committed Apr 29, 2020
1 parent 6ab3ad4 commit 7459fad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flow/IndexedSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,8 @@ void IndexedSet<T,Metric>::erase( typename IndexedSet<T,Metric>::iterator begin,
// Removes all nodes in the set between first and last, inclusive.
// toFree is extended with the roots of completely removed subtrees.

ASSERT(!end.i || (begin.i && *begin <= *end));

if(begin == end)
return;

Expand Down

0 comments on commit 7459fad

Please sign in to comment.