[C++-sig] Taking ownership of a base pointer
abentley at panoramicfeedback.com
Thu Jan 20 17:02:27 CET 2005
I have some polymorphic code that wants to take ownership of a base pointer.
I've successfully used std::auto_ptr<ExactType>, to take ownership, but
it doesn't work for std::auto_ptr<BaseType>. I could always declare
wrapper functions for every derived type, but is there a better way?
Director of Technology
More information about the Cplusplus-sig