[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

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
> Graph; to typedef adjacency_list
> 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