std::string::reserve()
Paolo Carlini
pcarlini@suse.de
Wed Nov 24 23:55:00 GMT 2004
Neil Ferguson wrote:
> I've submitted bugzilla report 18654 for this:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18654
Ok, thanks.
> I would be delighted to test a patch against my own work; I have a test
> suite that happens to exercise the string functionality we use quite a
> bit. Unfortunately, I won't be able to get the users to try it,
> because (among other things) we have a general rule that we never use
> code that didn't come from an "official release". Would that be
> acceptable?
Definitely acceptable and I can completely understand that kind of policy.
You can find the one-liner attached: appears to work fine here but you
are the shrink-to-fit power-user, not me ;) The patch is of course
against current mainline, not 3.4, sorry (basic_string is already rather
different). I hope this is not a problem for your own tests.
Soon,
Paolo.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_neil
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041124/5b491609/attachment.ksh>
More information about the Libstdc++
mailing list