Boost logo

Boost Users :

Subject: Re: [Boost-users] [Graph] Topological sort compilation error
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2011-04-01 17:55:18


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


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