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 _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig