[Graph] Topological sort compilation error
Hi, I got some problems trying to compile a topological sort code. I created my graph with the color properties but I got the error: error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'boost::detail::error_property_not_found' (or there is no acceptable conversion) So, I tried the example at boost_1_46_1\libs\graph\example\topo_sort.cpp. It works fine, but with a little change I could reproduce the error. I change the following code at line 43: typedef adjacency_list<vecS, vecS, directedS, property<vertex_color_t, default_color_type> > Graph; to typedef adjacency_list<vecS, listS, directedS, property<vertex_color_t, default_color_type> > Graph; Should the vertex list selector influence on that? I tried Boost 1.46.1 and got the error with both compilers: Microsot Visual Studio 2008 version 9.0.21022.8 RTM and Intel® C++ Compiler Version 11.1.850.2008 I attached the modified version of the file. With Kind Regards, Bruno
On Fri, 1 Apr 2011, Bruno Morais wrote:
Hi,
I got some problems trying to compile a topological sort code. I created my graph with the color properties but I got the error:
error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'boost::detail::error_property_not_found' (or there is no acceptable conversion)
So, I tried the example at boost_1_46_1\libs\graph\example\topo_sort.cpp. It works fine, but with a little change I could reproduce the error. I change the following code at line 43:
typedef adjacency_list<vecS, vecS, directedS, property<vertex_color_t, default_color_type> > Graph; to
typedef adjacency_list<vecS, listS, directedS, property<vertex_color_t, default_color_type> > Graph;
Should the vertex list selector influence on that?
Yes, since it removes the vertex index map from the graph. The code is trying to print out values from the vertex index map, but since there is no such map, an error occurs instead. -- Jeremiah Willcock
participants (2)
-
Bruno Morais
-
Jeremiah Willcock