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-06 23:57:40


#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):

 Could you please try this patch:

 {{{
 Index: /u/jewillco/boost-svn/boost/graph/astar_search.hpp
 ===================================================================
 --- /u/jewillco/boost-svn/boost/graph/astar_search.hpp (revision 65774)
 +++ /u/jewillco/boost-svn/boost/graph/astar_search.hpp (working copy)
 @@ -318,11 +318,11 @@
      // otherwise the value type of the weight map.
      typedef
        typename detail::override_const_property_result<
 - arg_pack_type, tag::weight_map, edge_weight_t,
 VertexListGraph>::type
 + arg_pack_type, tag::weight_map, edge_weight_t, const
 VertexListGraph>::type
        weight_map_type;
      typedef typename boost::property_traits<weight_map_type>::value_type
 W;
      typedef
 - typename detail::map_maker<VertexListGraph, arg_pack_type,
 tag::distance_map, W>::map_type
 + typename detail::map_maker<const VertexListGraph, arg_pack_type,
 tag::distance_map, W>::map_type
        distance_map_type;
      typedef typename
 boost::property_traits<distance_map_type>::value_type D;

 @@ -355,7 +355,7 @@
      BOOST_GRAPH_DECLARE_CONVERTED_PARAMETERS(params_type, params)
      typedef
        typename detail::override_const_property_result<
 - arg_pack_type, tag::weight_map, edge_weight_t,
 VertexListGraph>::type
 + arg_pack_type, tag::weight_map, edge_weight_t, const
 VertexListGraph>::type
                 weight_map_type;
      typedef typename boost::property_traits<weight_map_type>::value_type
 D;
      astar_search_no_init
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4715#comment:11>
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