|
Boost Users : |
From: Sourabh (sourabh_at_[hidden])
Date: 2007-08-13 04:47:39
Hi,
I am using the boost graph (adjacency_list) and want to perform BFS on
that. I am constructing the graph, passing VertexProperty as a structure
(bundled_properties). When I try to modify the structure in my own bfs
visitior (in the overriden function discover_vertex), the compiler says
the structure (representing the vertex property) is readonly. I had to
switch to const_cast of that structure, but it is not elegant.
Can anyone help me through this?
Regards,
Sourabh
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