Boost logo

Boost :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2005-05-02 10:52:45


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk