This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/49668] [C++0x] std::thread does not forward its args as rvalues
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 7 Jul 2011 08:33:26 +0000
- Subject: [Bug libstdc++/49668] [C++0x] std::thread does not forward its args as rvalues
- Auto-submitted: auto-generated
- References: <bug-49668-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49668
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.07.07 08:33:23
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-07 08:33:23 UTC ---
The same problem exists for std::packaged_task and std::async
include <future>
struct moveable
{
moveable() = default;
moveable(moveable&&) = default;
};
void f(moveable) { }
int main()
{
std::packaged_task<void(moveable)> p(f);
p(moveable());
}