Boost C++ Libraries: Ticket #7870: boost::remove_vertex bug https://svn.boost.org/trac10/ticket/7870 <p> The following code will cause an exception in Visual Studio 2010, debug mode: </p> <pre class="wiki">#include &lt;boost/graph/adjacency_list.hpp&gt; #include &lt;iostream&gt; int main() { typedef boost::adjacency_list&lt; boost::listS, boost::vecS, boost::bidirectionalS&gt; graph_t; graph_t myGraph; graph_t::vertex_descriptor v1 = boost::add_vertex(myGraph); graph_t::vertex_descriptor v2 = boost::add_vertex(myGraph); boost::remove_vertex(v1, myGraph); boost::remove_vertex(v2, myGraph); return 0; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7870 Trac 1.4.3 Jeremiah Willcock Tue, 08 Jan 2013 21:22:29 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7870#comment:1 https://svn.boost.org/trac10/ticket/7870#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> This is the same invalidation error as <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7869" title="#7869: Bugs: boost::in_edges bug (closed: invalid)">#7869</a>; see my comment there for an explanation. </p> Ticket