Boost C++ Libraries: Ticket #5181: iterator invalidation problem in boost subgraph remove_edge_if https://svn.boost.org/trac10/ticket/5181 <p> remove_edge_if in subgraph.hpp goes on to note that remove_edge(*ep.first, g); will invalidate ep.first but then goes on using said iterator by using continue instead of break. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5181 Trac 1.4.3 joachim.falk@… Fri, 11 Feb 2011 15:11:41 GMT attachment set https://svn.boost.org/trac10/ticket/5181 https://svn.boost.org/trac10/ticket/5181 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">subgraph-remove_edge_if.patch</span> </li> </ul> <p> fix trivial iterator invalidation problem in remove_edge_if for subgraphs </p> Ticket Jeremiah Willcock Fri, 11 Feb 2011 18:37:56 GMT owner, status changed https://svn.boost.org/trac10/ticket/5181#comment:1 https://svn.boost.org/trac10/ticket/5181#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Andrew Sutton</span> to <span class="trac-author">Jeremiah Willcock</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Jeremiah Willcock Fri, 11 Feb 2011 18:39:24 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5181#comment:2 https://svn.boost.org/trac10/ticket/5181#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/68781" title="Changed &#34;continue&#34; to &#34;break&#34; in remove_edge_if; fixes #5181">[68781]</a>) Changed "continue" to "break" in remove_edge_if; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5181" title="#5181: Bugs: iterator invalidation problem in boost subgraph remove_edge_if (closed: fixed)">#5181</a> </p> Ticket