Re: [Boost-bugs] [Boost C++ Libraries] #4715: custom property_map no longer works for astar_search

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4715: custom property_map no longer works for astar_search
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-07 22:33:33


#4715: custom property_map no longer works for astar_search
------------------------------------------------------+---------------------
  Reporter: Szymon Gatner <szymon.gatner@…> | Owner: jewillco
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: graph
   Version: Boost 1.44.0 | Severity: Problem
Resolution: worksforme | Keywords:
------------------------------------------------------+---------------------

Comment (by jewillco):

 See if this patch works (either with or without the one I sent before):

 {{{
 Index: boost/graph/named_function_params.hpp
 ===================================================================
 --- boost/graph/named_function_params.hpp (revision 65774)
 +++ boost/graph/named_function_params.hpp (working copy)
 @@ -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>
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4715#comment:14>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC