|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65836 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2010-10-08 13:33:07
Author: jewillco
Date: 2010-10-08 13:32:57 EDT (Fri, 08 Oct 2010)
New Revision: 65836
URL: http://svn.boost.org/trac/boost/changeset/65836
Log:
Fixed const issue on VC++ 8; fixes #4715
Text files modified:
trunk/boost/graph/named_function_params.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/graph/named_function_params.hpp
==============================================================================
--- trunk/boost/graph/named_function_params.hpp (original)
+++ trunk/boost/graph/named_function_params.hpp 2010-10-08 13:32:57 EDT (Fri, 08 Oct 2010)
@@ -392,8 +392,8 @@
template <typename ArgType, typename Prop, typename Graph, bool Exists>
struct override_const_property_t {
- typedef ArgType result_type;
- result_type operator()(const Graph&, const typename boost::add_reference<ArgType>::type a) const {return a;}
+ typedef typename boost::remove_const<ArgType>::type result_type;
+ result_type operator()(const Graph&, const ArgType& a) const {return a;}
};
template <typename ArgType, typename Prop, typename Graph>
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