[Boost-bugs] [Boost C++ Libraries] #6391: New reverse_graph edge descriptor type breaks shared property maps

Subject: [Boost-bugs] [Boost C++ Libraries] #6391: New reverse_graph edge descriptor type breaks shared property maps
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-11 15:00:26


#6391: New reverse_graph edge descriptor type breaks shared property maps
------------------------------+---------------------------------------------
 Reporter: tiago@… | Owner: jewillco
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
  Version: Boost 1.48.0 | Severity: Regression
 Keywords: reverse_graph |
------------------------------+---------------------------------------------
 The newly implemented data type for the edge descriptor of reversed_graph
 does not allow for the transparent sharing of edge property maps between
 the base and reversed graphs, which was possible with the old code (<
 1.48), since its type is not related to the base graph. This is a very
 useful feature, and I think it should be preserved.

 I'm sending attached a patch which makes the reversed edge descriptior a
 derived class from the base edge descriptor. This makes the type itself
 distinct from the base graph, avoiding any ambiguities, while at the same
 time preserving interchangeability with the base descriptor when required,
 e.g. when accessing property maps. This also makes the code a bit more
 elegant.

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