[C++-sig] Re: function::argument_error / overloads & docstrings

David Abrahams dave at boost-consulting.com
Mon Nov 10 18:02:25 CET 2003


Nikolay Mladenov <nickm at sitius.com> writes:

> David Abrahams wrote:
>> 
>> Nikolay Mladenov <nickm at sitius.com> writes:
>> 
>> > David Abrahams wrote:
>> >>
>> >> Nikolay Mladenov <nickm at sitius.com> writes:
>> >>
>> >> > the problematic line is
>> >> >                     param += (len(kv) > 1 ? " %s=%r" : " %s") % kv;
>> >>
>> >> what about:
>> >>
>> >>         param += const_cast<char const*>(len(kv) > 1 ? " %s=%r" : " %s") % kv;
>> >>
>> >> ??
>> >
>> > This works.
>> 
>> OK, committed.  Nikolay, could you post a patch which introduces a
>> test case for this stuff?  
>>Remember it has to work regardless of how
>> C++ names are mangled.
>
> I am not sure what are you asking me? Where did we come close to the
> name mangling?

Sorry, I meant "regardless of how names are represented by
boost::python::type_info::name()"

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list