boost graph gives compile error on VC++ 7.1
Dear all
It's already posted, but there was not a really good answer. If you take
from
boost graph 'examples/file_dependencies.cpp' and strip down some code, but
change the graph type to:
typedef adjacency_list
One thing I see wrong is that the depth_first_search algorithm requires that the
graph that it is given has an 'boost::vertex_index_t' property. So change your
Graph definition to:
typedef adjacency_list
Graph;
gast 128 wrote:
Dear all
It's already posted, but there was not a really good answer. If you take from boost graph 'examples/file_dependencies.cpp' and strip down some code, but change the graph type to:
typedef adjacency_list
, property Graph;
Graph g;
default_dfs_visitor vis; depth_first_search(g, visitor(vis));
It gives C2678 on VC++ 7.1.
Does anyone know what's wrong/possible work around?
Wkr me
_________________________________________________________________ MSN Search, for accurate results! http://search.msn.nl
Jeffrey Holle
One thing I see wrong is that the depth_first_search algorithm requires that
the
graph that it is given has an 'boost::vertex_index_t' property. So change your Graph definition to: typedef adjacency_list
, property Graph;
Thanks, this seems to work. I am reading the book , and this boost graph stuff is quite overwhelming at first sight. Although they did a great job, still the documentation/book could have improvements here and there. Wkr, me
participants (3)
-
gast 128
-
gast128
-
Jeffrey Holle