This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix all rvalue references PRs
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Doug Gregor <doug dot gregor at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Mon, 05 Nov 2007 16:14:18 +0100
- Subject: Re: [C++ PATCH] Fix all rvalue references PRs
- References: <24b520d20711050642h2bd63211mb6a82348131a6c20@mail.gmail.com>
Doug Gregor wrote:
> Paolo, could you try this patch against some of the library work
> you've been doing? I know some of these test cases are distilled from
> examples from the C++0x library.
>
Many thanks Doug. Indeed, in C++0x mode, I added emplace insert and
push_back to std::vector according to N2461 + some internal reworks to
use moves instead of copies when possible (bring over from v7-branch
with adaptations). Everything works with your patch, in particular I
will be able to enable 3 xfailed tests for "move" features already
existing in 23_containers/vector.
Thanks a lot again, I envisage a quick approval of the patch, certainly
represents a definite improvement.
Paolo.