[C++-sig] a python property being a reference

Alex alex at glumol.com
Tue Apr 20 01:03:53 CEST 2004

add_property("toto", &CToto::get_toto)

with CToto::get_toto returning an object reference 
it doesn't work caus it needs a "return value policy"
how can i give a return value policy in add_property like in def  ?

Alex Legrand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20040420/3cced20b/attachment.htm>

More information about the Cplusplus-sig mailing list