diff options
Diffstat (limited to 'zen/thread.h')
-rw-r--r-- | zen/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/thread.h b/zen/thread.h index d860abd0..c9b4c76f 100644 --- a/zen/thread.h +++ b/zen/thread.h @@ -101,7 +101,7 @@ auto async(Function fun) -> boost::unique_future<decltype(fun())> #endif auto fut = pt.get_future(); boost::thread(std::move(pt)).detach(); //we have to explicitly detach since C++11: [thread.thread.destr] ~thread() calls std::terminate() if joinable()!!! - return std::move(fut); //compiler error without "move", why needed??? + return fut; } |