Boost logo

Boost Users :

From: Stuart Dootson (stuart.dootson_at_[hidden])
Date: 2006-01-12 03:37:57


On 1/12/06, me22 <me22.ca_at_[hidden]> wrote:
> 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.
>

Quite right - noticed just after I pressed the Send button - I'll use
the defence that I never use std::auto_ptr :-)

<snip>

>
> - Scott
>

Stuart


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