[C++-sig] Return policy for operator()

Eric Jardim ericjardim at gmail.com
Tue Aug 23 00:17:49 CEST 2005

2005/8/22, Grant Goodyear <grant at grantgoodyear.org>:
> I have an image object that overloads operator() to handle array
> subscripting of the object's image data by returning a float&. How do I
> set the return policy for operator() in pyste?

I think "return_value_policy<copy_non_const_referece>()" will work. 

It is just a "float".

[Eric Jardim]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20050822/93d5f71a/attachment.htm>

More information about the Cplusplus-sig mailing list