mirror of
https://github.com/boostorg/graph.git
synced 2026-02-27 17:12:11 +00:00
Changed "continue" to "break" in remove_edge_if; fixes #5181
[SVN r68781]
This commit is contained in:
@@ -691,7 +691,7 @@ remove_edge_if(Predicate p, subgraph<G>& g) {
|
||||
if (p(*ep.first)) {
|
||||
any_removed = true;
|
||||
remove_edge(*ep.first, g);
|
||||
continue; /* Since iterators may be invalidated */
|
||||
break; /* Since iterators may be invalidated */
|
||||
}
|
||||
}
|
||||
if (!any_removed) break;
|
||||
|
||||
Reference in New Issue
Block a user