[C++-sig] which return policy?
ndbecker2 at gmail.com
Tue Apr 17 15:06:58 CEST 2007
Roman Yakovenko wrote:
> On 4/17/07, Neal Becker <ndbecker2 at gmail.com> wrote:
>> In this:
>> A free_func (B& b);
>> Where A is a class that maintains a reference to b,
>> class_<B> ...
>> .def ("get_A", free_func, return_arg<1>())
>> Is this the correct return policy?
> I guess with_custodian_and_ward_postcall:
Thanks. Looks like with_cusotdian_and_ward_postcall<0,1> is correct.
More information about the Cplusplus-sig