Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost Graph Library] Example fails with dynamic allocated array?
From: Thomas Klimpel (Thomas.Klimpel_at_[hidden])
Date: 2008-11-18 10:52:49


r89 wrote:
> Can anyone see why they are different?
...
> int num_arcs = sizeof(edge_array) / sizeof(Edge);

The above line will not work correctly when edge_array is a pointer
instead of a c-array.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net