|
Boost Users : |
From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2005-12-20 18:08:47
On Dec 15, 2005, at 7:18 AM, matthieu.ferrant_at_[hidden] wrote:
> I am having trouble using (actually compiling with) the boost graph
> library. When I add a dijkstra_shortest_paths command (even just as
> in the example of the quick tour), it spits out the following error
> at compile time :
>
>
> Z:\improc\include\boost\graph\dijkstra_shortest_paths.hpp(136):
> error C2664: 'bool std::less<_Ty>::operator ()(const _Ty &,const
> _Ty &) const' : cannot convert parameter 1 from 'const
> boost::detail::adj_list_any_edge_pmap::bind_<Graph,Property,Tag>::valu
> e_type' to 'const D &'
> with
> [
> _Ty=D
> ]
> and
> [
> Graph=Graph,
>
> Property=boost::detail::edge_property_map<Graph,boost::edge_weight_t>:
> :Property,
> Tag=boost::edge_weight_t
> ]
It looks like the type Ty in std::less<_Ty> does not match the type
stored in the property map. What do your call to
dijkstra_shortest_paths() and your adjacency_list<...> type look like?
Doug
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