[C++-sig] Re: Problem with different return types.

Nicodemus nicodemus at esss.com.br
Sat Feb 7 17:58:35 CET 2004


Hi Hanz,

Hanz Meizer wrote:

> Niall Douglas wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 6 Feb 2004 at 11:22, Hanz Meizer wrote:
>>
>>
>>> virtual const C& getC(void ) const = 0;
>>> virtual C& getC(void) = 0;
>>>
>>> Is it possible to export both functions? Is it possible to export one
>>> of them, and ignore the other? I've tried several ways to include it,
>>> but both did not work out. Currently I'm using pythe to generate the
>>> interface class. So my other question is: If it's possible, how can I
>>> integrate the solution in pyste? :)
>>
>>
>>
>> delete the def("getC", (const C& (*)(void) const) &getC) version. 
>> Python never calls from within a const context anyway.
>>
>> Cheers,
>> Niall
>
>
> Hi,
>
> Does anyone happen to know how to do this in pyste? I could write 
> exclude(C.getC), but this removes both versions.


Currently that's not supported... there's plan to include a mechanism to 
do that in the future thought.

Regards,
Nicodemus.





More information about the Cplusplus-sig mailing list