std::string::reserve()
Neil Ferguson
nferguso@eso.org
Thu Feb 12 18:15:00 GMT 2004
Paolo Carlini wrote:
<snip>
> The standard is like this exactly because wants to make possible
> an efficient refcopied implementation.
In other words, it's better to make correct usage as efficient as
possible, even at the expense of guarding against unsafe usage.
You're right.
I surrender :-)
_M_set_sharable() call added, regtested i686-linux, diffs attached.
Neil.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: basic_string.h.diff
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040212/0d6734cd/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: basic_string.tcc.diff
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040212/0d6734cd/attachment-0001.ksh>
More information about the Libstdc++
mailing list