[C++-sig] differencein memory management
David Abrahams
dave at boostpro.com
Thu Jul 17 00:57:01 CEST 2008
on Wed Jul 16 2008, Gennadiy Rozental <rogeeff-AT-gmail.com> wrote:
> Hi David,
>
> I plan to reply to your other post, but before I do that can't you explain to me
> difference in memory/ownership/lifecycle management in between following export
> statements:
>
> class_<A,shared_ptr<A>,...
> class_<A,intrusive_ptr<A>,...
> class_<A,A*,...
The first two are identical. The third one leaks a C++ A when the
corresponding Python A loses its last reference.
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
More information about the Cplusplus-sig
mailing list