https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69354

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-01-19
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
std::thread is doing the right thing, the problem is definitely in tuple:

#include <tuple>

struct MoveOnly
{
    MoveOnly(MoveOnly&) =delete;
    MoveOnly& operator=(MoveOnly&) =delete;

    MoveOnly(MoveOnly&& ){}
    MoveOnly(){}
};

std::tuple<MoveOnly> t{ MoveOnly{} };

Reply via email to