Promise, future and thread on C++0x
Jonathan Wakely
jwakely.gcc@gmail.com
Wed Jul 6 23:53:00 GMT 2011
On 7 July 2011 00:03, Jonathan Wakely wrote:
> 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.
>
I'm testing a fix for this now ...
More information about the Libstdc++
mailing list