[C++-sig] wrapping virtual base class with std::auto_ptr
David Abrahams
dave at boost-consulting.com
Fri May 13 23:25:11 CEST 2005
Faheem Mitha <faheem at email.unc.edu> writes:
> My best guess at why std::auto_ptr does not work is that it is a
> limitation of how it is designed.
Yes.
> Specifically, that the memory in question cannot be accessed in
> multiple places simultaneously.
No, it has to do with the fact that the auto_ptr copy ctor doesn't
take its rhs by const reference.
> Perhaps Boost.Python is trying to do that, or something similar.
No, this problem is almost entirely between you and the standard
library, and has little to do with Boost.Python.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list