Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66900 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2010-11-30 12:48:34


Author: jewillco
Date: 2010-11-30 12:48:33 EST (Tue, 30 Nov 2010)
New Revision: 66900
URL: http://svn.boost.org/trac/boost/changeset/66900

Log:
Fixed bundled graph properties in filtered_graph; fixes #4914
Text files modified:
   trunk/boost/graph/filtered_graph.hpp | 12 ++++++++++++
   1 files changed, 12 insertions(+), 0 deletions(-)

Modified: trunk/boost/graph/filtered_graph.hpp
==============================================================================
--- trunk/boost/graph/filtered_graph.hpp (original)
+++ trunk/boost/graph/filtered_graph.hpp 2010-11-30 12:48:33 EST (Tue, 30 Nov 2010)
@@ -233,6 +233,13 @@
     typedef typename edge_property_type<Graph>::type type;
   };
 
+ template <typename Graph,
+ typename EdgePredicate,
+ typename VertexPredicate>
+ struct graph_property_type<filtered_graph<Graph, EdgePredicate, VertexPredicate> > {
+ typedef typename graph_property_type<Graph>::type type;
+ };
+
 
 #ifndef BOOST_GRAPH_NO_BUNDLED_PROPERTIES
   template<typename Graph, typename EdgePredicate, typename VertexPredicate>
@@ -244,6 +251,11 @@
   struct edge_bundle_type<filtered_graph<Graph, EdgePredicate,
                                          VertexPredicate> >
     : edge_bundle_type<Graph> { };
+
+ template<typename Graph, typename EdgePredicate, typename VertexPredicate>
+ struct graph_bundle_type<filtered_graph<Graph, EdgePredicate,
+ VertexPredicate> >
+ : graph_bundle_type<Graph> { };
 #endif // BOOST_GRAPH_NO_BUNDLED_PROPERTIES
 
   //===========================================================================


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