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++/52938] std::string::reserve request is not maintained if object is used in other object copy ctor


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52938

--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-04-11 23:57:34 UTC ---
What we tried to explain is that this sort of issue is well known and, more or
less, affects *any* reference counted implementation (I'm pretty sure you can
even find duplicates in Bugzilla or discussions in the mailing lists). That is
not the case when reference counting is not used and indeed it will *not* be
used (per the new C++11 Standard) in a new implementation of std::string which
we are currently showcasing as <ext/vstring.h>. Therefore, until a new "C++11"
ABI will become alive, and with it a new std::string, you can only work around
the issues, or experiment with <ext/vstring.h>, sorry.


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