This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/18654] Shrink-to-fit std::string::reserve() calls can reallocate & copy string contents unnecessarily


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]