This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[v3] libstdc++/48848
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 04 May 2011 00:33:48 +0200
- Subject: [v3] libstdc++/48848
Hi,
tested x86_64-linux, committed to mainline.
As regards the move assignment operator, the only non-trivial bit of the
patch, per today's discussion on the reflector, essentially we want to
be consistent with the resolution of LWG 675, thus make sure first that
the move-assigned-to object releases any owned resources. This implies
that at minimum the FDIS should be amended to a linear in size(),
instead of constant, complexity (also, the "as-if" verbiage about
resize(v.size()) is evidently bogus, likely a pasto from the preceding
copy-assignment operator).
Thanks,
Paolo.
////////////////////////////
Attachment:
CL_48848
Description: Text document
Attachment:
patch_48848
Description: Text document