From 2466d4a81874df87fa8bc7f51478cf49c9cd0f49 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Fri, 18 May 2001 22:35:51 +0000 Subject: [PATCH] updated for put_get_helper [SVN r10135] --- include/boost/graph/stanford_graph.hpp | 16 +++++++--------- include/boost/graph/subgraph.hpp | 4 ++-- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/include/boost/graph/stanford_graph.hpp b/include/boost/graph/stanford_graph.hpp index f9db9bec..6bdaac2d 100644 --- a/include/boost/graph/stanford_graph.hpp +++ b/include/boost/graph/stanford_graph.hpp @@ -248,13 +248,13 @@ namespace boost { // Vertex ID class sgb_vertex_id_map - : public boost::put_get_at_helper + : public boost::put_get_helper { public: typedef boost::readable_property_map_tag category; typedef long value_type; - typedef Vertex* key_type; typedef long reference; + typedef Vertex* key_type; sgb_vertex_id_map() : _g(0) { } sgb_vertex_id_map(sgb_graph_ptr g) : _g(g) { } long operator[](Vertex* v) const { return v - _g->vertices; } @@ -267,13 +267,13 @@ namespace boost { // Vertex Name class sgb_vertex_name_t_map - : public boost::put_get_at_helper + : public boost::put_get_helper { public: typedef boost::readable_property_map_tag category; typedef char* value_type; - typedef Vertex* key_type; typedef char* reference; + typedef Vertex* key_type; char* operator[](Vertex* v) const { return v->name; } }; inline sgb_vertex_name_t_map get(vertex_name_t, sgb_graph_ptr) { @@ -324,8 +324,7 @@ namespace boost { // Vertex Utility Map template class sgb_vertex_util_map - : public boost::put_get_at_helper< typename Tag::type, - sgb_vertex_util_map > + : public boost::put_get_helper > { public: typedef boost::lvalue_property_map_tag category; @@ -340,8 +339,7 @@ namespace boost { // Edge Utility Map template class sgb_edge_util_map - : public boost::put_get_at_helper< typename Tag::type, - sgb_edge_util_map > + : public boost::put_get_helper > { public: typedef boost::lvalue_property_map_tag category; @@ -382,7 +380,7 @@ namespace boost { // Edge Length Access template class sgb_edge_length_map - : public boost::put_get_at_helper > + : public boost::put_get_helper > { public: typedef boost::lvalue_property_map_tag category; diff --git a/include/boost/graph/subgraph.hpp b/include/boost/graph/subgraph.hpp index 7d43ed9a..b47db12c 100644 --- a/include/boost/graph/subgraph.hpp +++ b/include/boost/graph/subgraph.hpp @@ -607,8 +607,8 @@ namespace boost { template class subgraph_property_map - : public put_get_at_helper< - typename property_traits::value_type, + : public put_get_helper< + typename property_traits::reference, subgraph_property_map > { typedef property_traits Traits;