[C++-sig] Re: shared_ptr and inheritance

Brett Calcott brett.calcott at paradise.net.nz
Sat Jun 21 00:28:50 CEST 2003

> > I'm trying to pass a shared_ptr of a derived class into a method that is
> > expecting a shared_ptr of the base class, and am getting type errors in
> > python.
> Are you using the latest CVS state?

Should this magically work now? I thought you had to use :

implicitly_convertible<DerivedPtr, BasePtr>();

in your module def.


More information about the Cplusplus-sig mailing list