[v3] libstdc++/16612

Benjamin Kosnik bkoz@redhat.com
Mon Sep 20 21:08:00 GMT 2004


This patch removes the empty string::_Rep as a carefully constructed
cast of-externally-allocated-array idea in basic string and uses a
static default constructed string::_Rep instead.

This does allow the string class to be used with shared allocators. That
part of the patch is still pending copyright assignment, but will
hopefully be in mainline sources without too much of a wait. I'm
tracking the progress of this assignment and will put in the relevant
patch as soon as possible. For those who are curious, there is bugzilla.

There is a similar patch for libstdcxx_so_7 branch that removes the
backwards-compat cruft in this patch. The next time that branch is
merged, I'll throw this version of the patch in.

tested x86/linux
performance tested x86/linux

I'll wait 24 hrs on this for Nathan and Paolo to comment.

best,
benjamin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: p.20040920-main
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040920/2ee6f9f5/attachment.ksh>


More information about the Libstdc++ mailing list