Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59628 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2010-02-10 17:10:11


Author: jewillco
Date: 2010-02-10 17:10:10 EST (Wed, 10 Feb 2010)
New Revision: 59628
URL: http://svn.boost.org/trac/boost/changeset/59628

Log:
Applied patch from Andy Tompkins in #3917; fixes #3917
Text files modified:
   trunk/boost/graph/astar_search.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/graph/astar_search.hpp
==============================================================================
--- trunk/boost/graph/astar_search.hpp (original)
+++ trunk/boost/graph/astar_search.hpp 2010-02-10 17:10:10 EST (Wed, 10 Feb 2010)
@@ -239,14 +239,14 @@
      AStarHeuristic h, AStarVisitor vis,
      PredecessorMap predecessor, CostMap cost,
      DistanceMap distance, WeightMap weight,
- ColorMap color, VertexIndexMap /*index_map*/,
+ ColorMap color, VertexIndexMap index_map,
      CompareFunction compare, CombineFunction combine,
      CostInf /*inf*/, CostZero zero)
   {
     typedef typename graph_traits<VertexListGraph>::vertex_descriptor
       Vertex;
- typedef boost::vector_property_map<std::size_t> IndexInHeapMap;
- IndexInHeapMap index_in_heap;
+ typedef boost::vector_property_map<std::size_t, VertexIndexMap> IndexInHeapMap;
+ IndexInHeapMap index_in_heap(index_map);
     typedef d_ary_heap_indirect<Vertex, 4, IndexInHeapMap, CostMap, CompareFunction>
       MutableQueue;
     MutableQueue Q(cost, index_in_heap, compare);


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