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 libstdc++/49668] [C++0x] std::thread does not forward its args as rvalues


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());
}


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