Promise, future and thread on C++0x

Jonathan Wakely jwakely.gcc@gmail.com
Wed Jul 6 23:03:00 GMT 2011


Here is a simpler program demonstrating the problem

#include <thread>

struct moveable
{
  moveable() = default;
  moveable(moveable&&) = default;
};

void f(moveable) { }

int main()
{
  std::thread t(f, moveable());
  t.join();
}


I think this should be quite easy to fix.



More information about the Libstdc++ mailing list