This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/18654] Shrink-to-fit std::string::reserve() calls can reallocate & copy string contents unnecessarily
- From: "nferguso at eso dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2004 18:53:21 -0000
- Subject: [Bug libstdc++/18654] Shrink-to-fit std::string::reserve() calls can reallocate & copy string contents unnecessarily
- References: <20041124184016.18654.nferguso@eso.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From nferguso at eso dot org 2004-11-24 18:53 -------
I've attached the most recent version of my original patch as
basic_string.h.diff and basic_string.tcc.diff.
WARNING: these patches are against CVS as of 12 February 2004,
so they are well out of date - they came from this message on
the mailing list:
http://gcc.gnu.org/ml/libstdc++/2004-02/msg00212.html
Recent discussion seems to be moving towards the position that
this approach is no longer the best.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18654