Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76439 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2012-01-12 15:27:31


Author: jewillco
Date: 2012-01-12 15:27:31 EST (Thu, 12 Jan 2012)
New Revision: 76439
URL: http://svn.boost.org/trac/boost/changeset/76439

Log:
Applied some fixes from #6313; fixes #6313
Text files modified:
   trunk/boost/graph/reverse_graph.hpp | 9 ++++-----
   1 files changed, 4 insertions(+), 5 deletions(-)

Modified: trunk/boost/graph/reverse_graph.hpp
==============================================================================
--- trunk/boost/graph/reverse_graph.hpp (original)
+++ trunk/boost/graph/reverse_graph.hpp 2012-01-12 15:27:31 EST (Thu, 12 Jan 2012)
@@ -124,8 +124,7 @@
     typedef transform_iterator<detail::reverse_graph_edge_descriptor_maker<typename Traits::edge_descriptor>, typename Traits::out_edge_iterator> in_edge_iterator;
 
     // AdjacencyGraph requirements
- typedef typename adjacency_iterator_generator<Self,
- vertex_descriptor, out_edge_iterator>::type adjacency_iterator;
+ typedef typename adjacency_iterator_generator<Self, vertex_descriptor, out_edge_iterator>::type adjacency_iterator;
 
     // VertexListGraph requirements
     typedef typename Traits::vertex_iterator vertex_iterator;
@@ -149,7 +148,7 @@
                typename detail::get_underlying_descriptor_from_reverse_descriptor<Descriptor>::type
>::type&
     operator[](Descriptor x)
- { return detail::get_underlying_descriptor_from_reverse_descriptor<Descriptor>::convert(m_g[x]); }
+ { return m_g[detail::get_underlying_descriptor_from_reverse_descriptor<Descriptor>::convert(x)]; }
 
     template<typename Descriptor>
     typename graph::detail::bundled_result<
@@ -157,7 +156,7 @@
                typename detail::get_underlying_descriptor_from_reverse_descriptor<Descriptor>::type
>::type const&
     operator[](Descriptor x) const
- { return detail::get_underlying_descriptor_from_reverse_descriptor<Descriptor>::convert(m_g[x]); }
+ { return m_g[detail::get_underlying_descriptor_from_reverse_descriptor<Descriptor>::convert(x)]; }
 #endif // BOOST_GRAPH_NO_BUNDLED_PROPERTIES
 
     static vertex_descriptor null_vertex()
@@ -354,7 +353,7 @@
       put(m.underlying_pm, e.underlying_descx, v);
     }
 
- reference operator[](const key_type& k) {
+ reference operator[](const key_type& k) const {
       return (this->underlying_pm)[k.underlying_descx];
     }
   };


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk