2 May
2005
2 May
'05
4:31 p.m.
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