This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/46497] [C++0x] Defaulted vs declared move constructor vs is_convertible


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]