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

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


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.

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





More information about the Cplusplus-sig mailing list