Boost logo

Boost Users :

From: me22 (me22.ca_at_[hidden])
Date: 2006-01-11 22:00:47


On 11/01/06, Stuart Dootson <stuart.dootson_at_[hidden]> wrote:
> std::auto_ptr - no dependency on Boost - but the assignment semantics
> can be confusing at first - personally, I'd not use this.
>

I'd just like to point out that std::auto_ptr calls delete, not
delete[], on the pointer it wons, so it cannot be used with new[]ed
arrays.

> Personally, I would tend to use vector
>

Agreed 100% -- the reason there's no std::auto_array ( or similar )
class is because that's what std::vector is there for.

- Scott


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