[C++-sig] take ownership in a call policy
Renato Araujo
renatox at gmail.com
Fri Dec 12 13:48:59 CET 2008
Hi guys,
I'm creating a 2 new call_policy to my functions where I need take and
give back the ownership of my object. I would like reproduce this in
my precall or postcall function policy functions.
http://www.boost.org/doc/libs/1_36_0/libs/python/doc/v2/faq.html#ownership
How I can do this? How I can get a ref to auto_ptr or shared_ptr from
my PyObject?
Thanks
--
Renato Araujo Oliveira Filho
More information about the Cplusplus-sig
mailing list