This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/69354] std::thread doesn't support move-only callable objects
- From: "anthony.ajw at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 19 Jan 2016 12:33:03 +0000
- Subject: [Bug libstdc++/69354] std::thread doesn't support move-only callable objects
- Auto-submitted: auto-generated
- References: <bug-69354-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69354
--- Comment #3 from Anthony Williams <anthony.ajw at gmail dot com> ---
I hadn't noticed I had omitted the const!
Surely the intent of 12.8p11.2 is that if you can't actually copy the bases
and/or members with the specified signature then the defaulted copy constructor
is deleted?
Are you going to file the DR or shall I?
Potential core defect aside, I still think this class should work with
std::thread, as it fits the MoveConstructible requirement.