[C++-sig] call policies
Stefan Seefeld
stefan.seefeld at orthosoft.ca
Thu Oct 17 21:59:06 CEST 2002
hi there,
I'm reading up on call policies but I'm not sure my case is
covered there:
I'v got an object handed back from a factory call. I pass
this object to another object where the second one takes
over ownership:
Foo *foo = FooFactory();
Bar *bar = BarFactory(foo);
(with either
Bar *BarFactory(Foo *);
or
Bar *BarFactory(auto_ptr<Foo>);
signature. How do I express that in boost.python ? The
'custody_and_wart' policy expects two arguments, the object
to be consumed as well as the consuming one. In my case
the consumer is created in the call. Which policy do I need ?
Thanks,
Stefan
More information about the Cplusplus-sig
mailing list