Opened 10 years ago

Closed 10 years ago

#7870 closed Bugs (invalid)

boost::remove_vertex bug

Reported by: ny_218@… 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;
}

Change History (1)

comment:1 by Jeremiah Willcock, 10 years ago

Resolution: invalid
Status: newclosed

This is the same invalidation error as #7869; see my comment there for an explanation.

Note: See TracTickets for help on using tickets.