28 Apr
2005
28 Apr
'05
8:05 p.m.
Hello, 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? Thanks in advance, andreas
2 May
2 May
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
7148
Age (days ago)
7152
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andreas Fabri
-
Doug Gregor