Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68781 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2011-02-11 13:39:17


Author: jewillco
Date: 2011-02-11 13:39:11 EST (Fri, 11 Feb 2011)
New Revision: 68781
URL: http://svn.boost.org/trac/boost/changeset/68781

Log:
Changed "continue" to "break" in remove_edge_if; fixes #5181
Text files modified:
   trunk/boost/graph/subgraph.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/graph/subgraph.hpp
==============================================================================
--- trunk/boost/graph/subgraph.hpp (original)
+++ trunk/boost/graph/subgraph.hpp 2011-02-11 13:39:11 EST (Fri, 11 Feb 2011)
@@ -691,7 +691,7 @@
       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;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk