[v3] basic_string::reserve() shrink-to-fit?

Neil Ferguson nferguso@eso.org
Thu Dec 11 15:25:00 GMT 2003


Paolo Carlini wrote:
> Neil Ferguson wrote:
> 
>> so that __res only needs to be different from capacity(), rather than
>> greater,
> 
> 
> First blush (no testsuite, etc...), seems a good idea to me, Nathan?
> 
> Paolo.

Sorry, I forgot to mention that I'd tried the supplied DejaGNU test
suite on it, for i686-pc-linux-gnu. I got some XPASS lines for the
22_locale tests, but nothing for strings, and the following summary:

--

                 === libstdc++-v3 Summary ===

# of expected passes            453
# of unexpected successes       26
# of expected failures          2

--

I haven't written a test case that specifically exercises my change,
though, as I haven't had time to learn how yet. This is the first time
I've meddled with libstdc++ :-)

Neil.



More information about the Libstdc++ mailing list