I'm trying boost for the first time on Codewarrior 8.0 for windows.
The Boost version is 1.25.1 from the "Boost Graph Library"
accompanying CD. The offensive code is :
#include
Graph;
property_map < Graph, vertex_name_t >::type name_map ;
property_map < Graph, edge_weight_t >::type value_map ;
Graph g;
typename graph_traits<Graph>::vertex_descriptor a,b;
a = add_vertex(g); name_map[a] = 'a';
b = add_vertex(g); name_map[b] = 'b';
typename graph_traits<Graph>::edge_descriptor ed;
bool inserted;
tie(ed, inserted) = add_edge(a, b, g);
value_map[ed] = 1.2;
return 0;
}
If the second template parameter for class VertexListS is replaced
with listS it compiles and run normally.
typedef adjacency_list
Graph;
Can you please advise why? Best Regards