Replacing string += "." by '.'
Paolo Carlini
pcarlini@unitus.it
Mon Nov 25 10:52:00 GMT 2002
Benjamin Kosnik wrote:
>>triggered by a recent patch of Paolo, I thought about the implications of
>>replacing adding single characters like
>> __str += '=';
>>by
>> __str += "=";
>>
>>It seemed to me that the latter is more expensive.
>>
>Absolutely. I was a bit surprised to see this as well.
>
Benjamin, if you agree, I prepare a Changelog entry on behalf of Wolfgang
and commit the patch (after testing, of course).
Ciao,
Paolo.
More information about the Libstdc++
mailing list