[Bug c++/46497] [C++0x] Defaulted vs declared move constructor vs is_convertible
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Tue Nov 16 11:06:00 GMT 2010
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.
More information about the Gcc-bugs
mailing list