
7 Dec
2010
7 Dec
'10
4:21 p.m.
On Tue, Dec 7, 2010 at 9:06 AM, Raul Durand <raul.durand@gmail.com> wrote:
So, how can I avoid Python for destroying the temporary and keep the object alive in C++? Does it have anything to do with the object ownership? Is there a way to change the ownership?
See with_custodian_and_ward in the docs: http://www.boost.org/doc/libs/1_45_0/libs/python/doc/tutorial/doc/html/pytho... http://www.boost.org/doc/libs/1_45_0/libs/python/doc/v2/with_custodian_and_w... HTH, -- Dave Abrahams BoostPro Computing http://www.boostpro.com