[C++-sig] return object from factory function

Gennadiy Rozental rogeeff at gmail.com
Thu Jul 17 09:08:07 CEST 2008

David Abrahams <dave <at> boostpro.com> writes:

> So extract and return a shared_ptr<Base>.  That will maintain ownership
> of the Python object for you.

Can't do. Factory methods are required to produce Base*. Plus in am forces to
use intrusive ref counting

More information about the Cplusplus-sig mailing list