[C++-sig] Pyste typedef problems...
Nicodemus
nicodemus at globalite.com.br
Tue Apr 1 13:45:49 CEST 2003
Giulio Eulisse wrote:
>>When I test your example, Pyste generates a warning for you:
>>
>>]pyste --module=A A.pyste
>>
>>---> Error: A::f returns a pointer or a reference, but no policy was
>>specified.
>>
>>So you have to specify a police for that function. Please look at the
>>documentation for that. For this particular function, you have to write:
>>
>>A = Class("A", "A.h")
>>set_policy(A.f, return_value_policy(copy_non_const_reference))
>>
>>
>
>I used return_internal_reference() as policy (the cut and paste lost
>it). Is that a problem?
>
>
It's fine if it works for you. 8)
Regards,
Nicodemus.
More information about the Cplusplus-sig
mailing list