[Boost-bugs] [Boost C++ Libraries] #6306: boost:edge(u, v, reverse_graph) returns edge_decriptor of non-reverse graph

Subject: [Boost-bugs] [Boost C++ Libraries] #6306: boost:edge(u, v, reverse_graph) returns edge_decriptor of non-reverse graph
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-20 16:56:06


#6306: boost:edge(u, v, reverse_graph) returns edge_decriptor of non-reverse graph
-------------------------------------------------+--------------------------
 Reporter: Alex Hagen-Zanker <ahh34@…> | Owner: jewillco
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: reverse_graph |
-------------------------------------------------+--------------------------
 boost::edge(u ,v, reverse_graph) returns a edge_descriptor of the graph
 that underlies reverse_graph, rather than the reverse_graph itself.

 The following does not compile, when Graph is a reverse_graph:

 template<typename Graph>
 void foo(Graph& graph)
 {
  boost::graph_traits<Graph>::edge_descriptor e = boost::edge(0, 1,
 graph).first;
 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6306>
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:08 UTC