Boost logo

Boost Users :

Subject: Re: [Boost-users] d_ary_heap_indirect problem
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2012-01-25 14:49:06


On Wed, 25 Jan 2012, David Doria wrote:

> I am trying to use d_ary_heap_indirect. I was able to create an object
> of the queue, but I can't push a vertex into it. Here is what I tried:
>
> http://programmingexamples.net/wiki/CPP/Boost/BGL/d_ary_heap_indirect
>
> I get a "no match for operator[]" error on the last line (the push()).
>
> Can anyone see what is wrong with that example?

It looks (from the comments for d_ary_heap_indirect) that IndexInHeapMap
needs to map from values (here, vertices) to indices, and so you probably
need to use GridIndexMapType to create the IndexInHeapMap like you do for
PriorityMapType.

-- Jeremiah Willcock


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net