[Boost-bugs] [Boost C++ Libraries] #7869: boost::in_edges bug

Subject: [Boost-bugs] [Boost C++ Libraries] #7869: boost::in_edges bug
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-08 20:43:38


#7869: boost::in_edges bug
------------------------------+---------------------------------------------
 Reporter: ny_218@… | Owner: jewillco
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 The following code will generate an exception in Visual Studio 2010:



 {{{
 #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::graph_traits<graph_t>::in_edge_iterator itEdge, itEnd;
   boost::tie(itEdge, itEnd) = boost::in_edges(v2, myGraph);
   for(; itEdge != itEnd; ++itEdge) {
     std::cout << boost::source(*itEdge, myGraph) << std::endl;
   }
   return 0;
 }

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7869>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC