From ac4b12107feea8346d465ed2df8f338062d4f1ce Mon Sep 17 00:00:00 2001 From: Jeremiah Willcock Date: Fri, 11 Feb 2011 18:39:11 +0000 Subject: [PATCH] Changed "continue" to "break" in remove_edge_if; fixes #5181 [SVN r68781] --- include/boost/graph/subgraph.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/graph/subgraph.hpp b/include/boost/graph/subgraph.hpp index 9e091941..a17c896f 100644 --- a/include/boost/graph/subgraph.hpp +++ b/include/boost/graph/subgraph.hpp @@ -691,7 +691,7 @@ remove_edge_if(Predicate p, subgraph& 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;