This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46497] [C++0x] Defaulted vs declared move constructor vs is_convertible
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 Nov 2010 10:56:17 +0000
- Subject: [Bug c++/46497] [C++0x] Defaulted vs declared move constructor vs is_convertible
- Auto-submitted: auto-generated
- References: <bug-46497-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46497
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-11-16 10:56:07 UTC ---
And for the record what I'm doing for the time being in the actual std::pair
is:
// XXX FIXME: should be defaulted per N3140. See c++/46497.
pair(pair&& __p)
: first(std::forward<first_type>(__p.first)),
second(std::forward<second_type>(__p.second)) { }
which works fine together with the rest of the C++0x features.