2
0
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:
Jeremiah Willcock
2011-02-11 18:39:11 +00:00
parent a4452c3539
commit ac4b12107f

View File

@@ -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;