[C++-sig] Re: Pyste bug: operator! shouldn't be translated
Nicodemus
nicodemus at globalite.com.br
Sat Oct 4 22:29:41 CEST 2003
David Abrahams wrote:
>"Niall Douglas" <s_sourceforge at nedprod.com> writes:
>
>
>>Other pyste bug: something like "operator float*()" converts into
>>".def("to_float", &FX::FXVec4f::operator float*)" which is fine
>>
>>
>
>really? Why isn't it
>
> .def(float_(self))
>
>??
>
>
Because the operator returns float*... if it did return just float,
float_(self) would be used.
>>but how do you specify the return policy???
>>
>>
>
>A return policy for a Python float?? What did you have in mind?
>
It's strange to have an operator that return float*. 8)
Have you tried set_policy(FXVec.operator['float*'], ...)?
More information about the Cplusplus-sig
mailing list