From 1d018bbeab4d63802c656d54befca9597e0e7117 Mon Sep 17 00:00:00 2001 From: Jeremiah Willcock Date: Tue, 24 Nov 2009 21:35:30 +0000 Subject: [PATCH] Fixed graph property constness issues [SVN r57910] --- include/boost/graph/reverse_graph.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/graph/reverse_graph.hpp b/include/boost/graph/reverse_graph.hpp index bba67cfc..3a81c294 100644 --- a/include/boost/graph/reverse_graph.hpp +++ b/include/boost/graph/reverse_graph.hpp @@ -9,6 +9,8 @@ #include #include #include +#include +#include #if BOOST_WORKAROUND(BOOST_MSVC, < 1300) // Stay out of the way of the concept checking class @@ -324,7 +326,10 @@ set_property(const reverse_graph& g, Tag tag, template inline -typename graph_property::type +typename boost::mpl::if_< + boost::is_const::type>, + const typename graph_property::type&, + typename graph_property::type& >::type get_property(const reverse_graph& g, Tag tag) { return get_property(g.m_g, tag);