compilation problems with the boost graph library and dijkstra_shortest_paths
On Dec 15, 2005, at 7:18 AM, matthieu.ferrant@agfa.com 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_
::valu e_type' to 'const D &' with [ _Ty=D ] and [ Graph=Graph, Property=boost::detail::edge_property_map
: :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
participants (2)
-
Douglas Gregor
-
matthieu.ferrant@agfa.com