[Patch] Update string::_M_check/_M_fold
Paolo Carlini
pcarlini@suse.de
Tue Jan 20 22:18:00 GMT 2004
Hi,
the below is what I have regtested. I'm quite happy with it!
As often happens for the good ;) clean-ups this one too
uncovered an previously unnoticed sort-of-bug: in append(const
basic_string&, size_type __pos, size_type __n) we were folding
__n and calling reserve accordingly, using an unchecked __pos.
Tested x86-linux, will commit tomorrow morning italian time
if nobody objects.
Paolo.
//////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_string
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040120/80cc1e4a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_string.diff
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040120/80cc1e4a/attachment-0001.ksh>
More information about the Libstdc++
mailing list