$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r77611 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2012-03-28 16:40:16
Author: jewillco
Date: 2012-03-28 16:40:15 EDT (Wed, 28 Mar 2012)
New Revision: 77611
URL: http://svn.boost.org/trac/boost/changeset/77611
Log:
Changed default version of property_map to use inheritance to try to get SFINAE in more cases
Text files modified: 
   trunk/boost/graph/properties.hpp |    17 ++++++-----------                       
   1 files changed, 6 insertions(+), 11 deletions(-)
Modified: trunk/boost/graph/properties.hpp
==============================================================================
--- trunk/boost/graph/properties.hpp	(original)
+++ trunk/boost/graph/properties.hpp	2012-03-28 16:40:15 EDT (Wed, 28 Mar 2012)
@@ -229,17 +229,12 @@
   } // namespace detail
 
   template <class Graph, class Property>
-  struct property_map {
-  // private:
-    typedef typename detail::property_kind_from_graph<Graph, Property>::type Kind;
-    typedef typename mpl::if_<
-              is_same<Kind, edge_property_tag>,
-              detail::edge_property_map<Graph, Property>,
-              detail::vertex_property_map<Graph, Property> >::type Map;
-  public:
-    typedef typename Map::type type;
-    typedef typename Map::const_type const_type;
-  };
+  struct property_map:
+    mpl::if_<
+      is_same<typename detail::property_kind_from_graph<Graph, Property>::type, edge_property_tag>,
+      detail::edge_property_map<Graph, Property>,
+      detail::vertex_property_map<Graph, Property> >::type
+  {};
 
   // shortcut for accessing the value type of the property map
   template <class Graph, class Property>