<html><body>
<p><tt><br>
> Write a thin wrapper and .add_property that, e.g. (untested)<br>
> <br>
> int get_base_i_directly(my_class const& self) { return self.get_base_i(); }<br>
> ...<br>
> .add_property("basei", make_function(get_base_i_directly))<br>
> <br>
> This way Boost.Python only "sees" my_class in the signature.</tt><br>
<br>
Yes, thanks, that works. <br>
<br>
What puzzles me, is that the same works for return-by-value wrappings. I don't quite get why that's something different to boost.python. Is there an easy explanation or am I just missing the obvious?<br>
<br>
Thanks<br>
Bernhard<br>
<br>
<br>
<br>
___________________________________________________________________<br>
<br>
Disclaimer:<br>
<br>
<br>
Diese Mitteilung ist nur fuer die Empfaengerin / den Empfaenger bestimmt.<br>
<br>
Fuer den Fall, dass sie von nichtberechtigten Personen empfangen wird, bitten wir diese hoeflich, die Mitteilung an die ZKB zurueckzusenden und anschliessend die Mitteilung mit allen Anhaengen sowie allfaellige Kopien zu vernichten bzw. zu loeschen. Der Gebrauch der Information ist verboten.<br>
<br>
<br>
This message is intended only for the named recipient and may contain confidential or privileged information.<br>
<br>
If you have received it in error, please advise the sender by return e-mail and delete this message and any attachments. Any unauthorised use or dissemination of this information is strictly prohibited.</body></html>