At 09:53 AM 1/31/2003, David Abrahams wrote: >... >In fact, I have been arguing for years that our smart pointers should >never have had a public interface which adopts unmanaged resources on >construction. Instead, we should write: > > std::auto_ptr<T> = std::auto_ptr_new<T>(arg1, arg2, arg3); > >Voila, a managed T straight out of the box.
And I proposed something like this years before that, but foundered on not being able to declare a type-safe variadic function in C++. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost