Boost Graph library migration 1.48 => 1.49 (1.50)

Hi, All!
I am newbie in boost.
The code fragment compiled without errors with boost 1.48.0 in MS Visual Studio
2008 ,
but returns compiler error with boost 1.49 and 1.50 :
error C2784: 'E
boost::detail::get(boost::detail::underlying_edge_desc_map_type<E>,
const boost::detail::reverse_graph_edge_descriptor<EdgeDesc> &)' :
could not deduce template argument for
'boost::detail::underlying_edge_desc_map_type<E>' from 'double *'
c:\program files\boost\boost_1_50_0\boost\graph\dijkstra_shortest_paths.hpp
140 .
typedef boost::adjacency_list

On Mon, 2 Jul 2012, Gregory wrote:
Hi, All!
I am newbie in boost.
The code fragment compiled without errors with boost 1.48.0 in MS Visual Studio 2008 , but returns compiler error with boost 1.49 and 1.50 :
There have been some issues with errors like this with Visual Studio and pointer-based property maps. Could you please try replacing &distances[0] with: boost::make_iterator_property_map(distances.begin(), get(boost::vertex_index, g)) and similar for predesessor [sic]? That might fix the problem. -- Jeremiah Willcock
participants (2)
-
Gregory
-
Jeremiah Willcock