
Hi Maxx, From what you've posted, I can't tell what the problem is. If you post a short but complete program exhibiting the problem I'll take a look. Cheers, Jeremy On Feb 24, 2004, at 8:42 AM, Maxx Sloyko wrote:
Hi there!
May be I'm asking something unbeleivably stupid, but anyway here is my problem. I need to get the names of all vertices in the graph (It is GraphvizDigraph), so ---------------------------------------------------- using namespace boost; property_map< GraphvizDigraph, vertex_name_t>::type& vn = get(vertex_name, g); graph_traits<GraphvizDigraph>::vertex_iterator i;
for(i = vertices(g).first; i != vertices(g).second; ++i ) { std::cout<< vn[*i]<<endl; } ----------------------------------------------------
And here is the error I got: ---------------------------------------------------- c:\Documents and Settings\MAKC\My Documents\Visual Studio Projects\Graph\MyGraph.cpp(61) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'boost::vec_adj_list_any_vertex_pa::bind_<Tag,Graph,Property>::value _type' (or there is no acceptable conversion) with [ Tag=boost::vertex_name_t, Graph=boost::detail::subgraph_any_pmap::bind_<boost:: vertex_name_t,boost: :GraphvizDigraph,boost::detail::vertex_property_map<boost:: GraphvizDigrap h,boost::vertex_name_t>::Property>::Graph,
Property=boost::detail::vertex_property_map<boost::detail:: subgraph_any_p map::bind_<boost::vertex_name_t,boost::GraphvizDigraph,boost::detail:: ver tex_property_map<boost::GraphvizDigraph,boost::vertex_name_t>:: Property>: :Graph,boost::vertex_name_t>::Property ] -----------------------------------------------------
Since this code is almost "CopyPasted" from the library example, my beleif is that it should work. At what point I have to change my worldview? :)
Thanks in advance.
------------------------------------- |your sincerely, Maxx, | | mailto:maxxua@pisem.net | ------------------------------------- _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Jeremy Siek <jsiek@osl.iu.edu> http://www.osl.iu.edu/~jsiek Ph.D. Student, Indiana University Bloomington C++ Booster (http://www.boost.org) Office phone: (812) 856-1820 _______________________________________________