<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>>> add_property("toto",
&CToto::get_toto)<BR>>><BR>>> with CToto::get_toto returning an
object reference <BR>>> it doesn't work caus it needs a return value
policy<BR>>> how can i give a return value policy in add_property like in
def ?<BR><BR>>Look in the reference manual for make_getter and
make_setter.<BR>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I can make a "def_readonly" like with
make_getter but how can I make a regular property with that ? I want to use
my own "get" fucntion, not the default one boost.python can make with
make_getter</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Alex</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>