12 Jan
2006
12 Jan
'06
3 a.m.
On 11/01/06, Stuart Dootson
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