Skip to content
Snippets Groups Projects
Commit 2445af25 authored by Tomáš Pecka's avatar Tomáš Pecka Committed by Tomáš Pecka
Browse files

Cover speedup: Fix set erase

parent 1fa54389
No related branches found
No related tags found
1 merge request!96Bp shushiri rebase
...@@ -179,8 +179,7 @@ unsigned int ApproximateCoversComputation::smallestDistanceCover( ...@@ -179,8 +179,7 @@ unsigned int ApproximateCoversComputation::smallestDistanceCover(
auto it = subset.begin(); auto it = subset.begin();
while (it != subset.end()) { while (it != subset.end()) {
if ((int) (*it).second == l && (*it) != *subset.begin() && (*it) != (*last)) { if ((int) (*it).second == l && (*it) != *subset.begin() && (*it) != (*last)) {
subset.erase(it); it = subset.erase(it);
it = subset.begin();
} else { } else {
it++; it++;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment