bug on /libs/graph/doc/quick_tour.html

The first bit of sample code in the section "Adding Some Color to your Graph" on http://www.boost.org/libs/graph/doc/quick_tour.html does not compile. Graph G(num_nodes, edges, edges + sizeof(edges) / sizeof(E), weights); --> there seems to be no corresponding constructor. I am still fighting to find the proper solution and will followup when I find something. -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver! spamtraps: madduck.bogus@madduck.net "you don't sew with a fork, so I see no reason to eat with knitting needles." -- miss piggy, on eating chinese food

On Jun 13, 2005, at 4:33 AM, martin f krafft wrote:
The first bit of sample code in the section "Adding Some Color to your Graph" on http://www.boost.org/libs/graph/doc/quick_tour.html does not compile.
Graph G(num_nodes, edges, edges + sizeof(edges) / sizeof(E), weights);
That should be: Graph G(edges + sizeof(edges) / sizeof(E), weights, num_nodes); Fixed in CVS. Thanks for reporting this! Doug
participants (2)
-
Doug Gregor
-
martin f krafft