Re: [pygccxml-development] Parameter passing, ownership semantics
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2007-02-18 18:24:37
|
On 2/18/07, Gustavo Carneiro <gjc...@gm...> wrote: > > I don't fully understand your situation. Take a look on this FAQ( > > http://boost.org/libs/python/doc/v2/faq.html#ownership ) > > > > Does it help? > > Yes, it seems to match my problem. You have function that takes ownership on a pointer, right? > Now, trying to implement the advice I stumble upon the "Make sure the C++ > object is held by auto_ptr" part, which I have no idea how to do. How do I > tell Py++ to do that? > > If not, please describe your situation with some C++ code. > > > > If it do help, than you can use "function transformation" feature to > > create the wrapper. > > > > ( > http://language-binding.net/pyplusplus/documentation/functions/transformation/built_in/built_in.html > > ) > > That doesn't seem to help; I don't know enough of Py++ internals to be > able to my own function transformation in useful time. Not a problem, I need this too, I will create it for you and will let you know ( +- 1 hour ) -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |