|
Boost Users : |
From: Doug Gregor (dgregor_at_[hidden])
Date: 2005-05-02 11:31:18
Hello Andreas,
On Apr 28, 2005, at 3:05 PM, Andreas Fabri wrote:
> I wrote my own dijksta visitor for the shortest
> path algorithm, and on an event I wanted it to
> write something in a bundled property of a vertex.
> However this didn't compile because the graph
> is a const&.
>
> Is there a way to solve this problem?
We usually get around this problem by storing a non-const Graph& in the
visitor itself, and using that.
Doug
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