[C++-sig] take ownership in a call policy

David Abrahams dave at boostpro.com
Sat Dec 13 02:08:51 CET 2008


on Fri Dec 12 2008, "Renato Araujo" <renatox-AT-gmail.com> wrote:

> 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?

I'm sorry, I don't understand the question.  Could you please show the
function signature you're trying to wrap and describe the ownership
semantics required?

Thanks,

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com


More information about the Cplusplus-sig mailing list