From 4673c796aaadd5cab6ef62a72a35d64ff8f7b347 Mon Sep 17 00:00:00 2001 From: Jeremiah Willcock Date: Fri, 8 Oct 2010 18:06:41 +0000 Subject: [PATCH] Merged r65836 (fix for #4715) from trunk; refs #4715 [SVN r65839] --- include/boost/graph/named_function_params.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/graph/named_function_params.hpp b/include/boost/graph/named_function_params.hpp index 47535fbd..e08c5c4c 100644 --- a/include/boost/graph/named_function_params.hpp +++ b/include/boost/graph/named_function_params.hpp @@ -392,8 +392,8 @@ BOOST_BGL_DECLARE_NAMED_PARAMS template struct override_const_property_t { - typedef ArgType result_type; - result_type operator()(const Graph&, const typename boost::add_reference::type a) const {return a;} + typedef typename boost::remove_const::type result_type; + result_type operator()(const Graph&, const ArgType& a) const {return a;} }; template