|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64035 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2010-07-14 22:12:20
Author: jewillco
Date: 2010-07-14 22:12:18 EDT (Wed, 14 Jul 2010)
New Revision: 64035
URL: http://svn.boost.org/trac/boost/changeset/64035
Log:
Simplified property map handling
Text files modified:
trunk/boost/graph/filtered_graph.hpp | 25 ++++---------------------
1 files changed, 4 insertions(+), 21 deletions(-)
Modified: trunk/boost/graph/filtered_graph.hpp
==============================================================================
--- trunk/boost/graph/filtered_graph.hpp (original)
+++ trunk/boost/graph/filtered_graph.hpp 2010-07-14 22:12:18 EDT (Wed, 14 Jul 2010)
@@ -435,27 +435,10 @@
//===========================================================================
// Property map
-
- namespace detail {
- struct filtered_graph_property_selector {
- template <class FilteredGraph, class Property, class Tag>
- struct bind_ {
- typedef typename FilteredGraph::graph_type Graph;
- typedef property_map<Graph, Tag> Map;
- typedef typename Map::type type;
- typedef typename Map::const_type const_type;
- };
- };
- } // namespace detail
-
- template <>
- struct vertex_property_selector<filtered_graph_tag> {
- typedef detail::filtered_graph_property_selector type;
- };
- template <>
- struct edge_property_selector<filtered_graph_tag> {
- typedef detail::filtered_graph_property_selector type;
- };
+
+ template <typename G, typename EP, typename VP, typename Property>
+ struct property_map<filtered_graph<G, EP, VP>, Property>
+ : property_map<G, Property> {};
template <typename G, typename EP, typename VP, typename Property>
typename property_map<G, Property>::type
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