[Patch/RFC] Improve (maybe ;) basic_stringbuf::overflow

Paolo Carlini pcarlini@unitus.it
Thu May 1 21:06:00 GMT 2003


Nathan Myers wrote:

>Hmm, 
>string::reserve() is cheap when capacity is already >= its argument, 
>right?  Might as well call it after the swap, just to be sure.
>
Nathan, I had in mind the _very same_ idea!

I will add that, then wait a bit more for more feedback...

Paolo.



More information about the Libstdc++ mailing list