[C++-sig] Re: Getting the pointer for a member operator
David Abrahams
dave at boost-consulting.com
Sat Apr 30 03:25:37 CEST 2005
Nicodemus <nicodemus at esss.com.br> writes:
> David Abrahams wrote:
>
>>Nicodemus <nicodemus at esss.com.br> writes:
>>
>>
>>
>>>But without success. Does anybody know how I can fix this?
>>>
>>>
>>
>>Did you try a typedef?
>>
>> typedef char const* string;
>>
>> ...
>>
>> .def("__str__", &operators::C::operator string)
>>
>>
>>
>
> Hi Dave,
>
> This would work, but I would like to avoid that for Pyste.
I don't know why.
> I believe its just a matter of syntax, hence easily solvable. I
> googled around a bit, but without success. Please take a look at my
> post for Valdimir, I posted a reproductible test case there. Perhaps
> you can shed some light in the matter?
No, I've already supplied one workaround. I don't know why it's not
good enough for you.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list