std::auto_ptr is broken in VC++ 8 (which is what we use at work). My main gripe with it is that it allows auto_ptr x = new T();, which of cour
std::auto_ptr
auto_ptr x = new T();
Why do you think std::auto_ptr<> is broken.
I would have though that somthing as bad as that would have been reported to the standards comitte!
Do you mean that you need to:
std::auto_ptr<T> x(new T); // Use the explicit constructor.