|
Boost Users : |
From: Stephen Torri (storri_at_[hidden])
Date: 2007-04-13 08:41:44
On Fri, 2007-04-13 at 04:50 -0700, Maarten Nieber wrote:
> Graph g;
> ComponentPropertyMap vertexToComponent = boost::get(component_t(),
> g);
>
> // THIS LINE DOES NOT COMPILE. No problem if boost::vecS is used
> instead of boost::setS in the Graph typedef!
> connected_components(g, vertexToComponent);
> }
I believe you do not want the () after the word component_t. In my
examples I do not have
boost::property_map<Graph_Base::Graph_t, boost::vertex_name_t>::type clist
= boost::get(boost::vertex_name, m_graph);
I think you want the line to read:
Graph g;
ComponentPropertyMap vertexToComponent = boost::get(component_t, g);
Stephen
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