Opened 10 years ago
Closed 10 years ago
#7870 closed Bugs (invalid)
boost::remove_vertex bug
Reported by: | Owned by: | Jeremiah Willcock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | graph |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The following code will cause an exception in Visual Studio 2010, debug mode:
#include <boost/graph/adjacency_list.hpp> #include <iostream> int main() { typedef boost::adjacency_list< boost::listS, boost::vecS, boost::bidirectionalS> 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; }
Note:
See TracTickets
for help on using tickets.
This is the same invalidation error as #7869; see my comment there for an explanation.