
2 May
2005
2 May
'05
3:52 p.m.
On Apr 27, 2005, at 4:51 PM, Felipe Magno de Almeida wrote:
in the file: http://www.boost.org/libs/graph/doc/quick_tour.html
there's an extra comma at the end of the declaration: Edge edge_array[] = { Edge(A,B), Edge(A,D), Edge(C,A), Edge(D,C), Edge(C,E), Edge(B,D), Edge(D,E), }; And a little after appears this line:
Graph g(edge_array, edge_array + sizeof(edge_array) / sizeof(E), num_vertices); but I think the correct should be: Graph g(edge_array, edge_array + sizeof(edge_array) / sizeof(Edge), num_vertices); Since the first gives a segmentation faul and I think doesnt make too much sense to use sizeof(E)...
Thanks! I've fixed both problems in CVS. Doug