summaryrefslogtreecommitdiff
path: root/zen/thread.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:55:19 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:55:19 +0200
commit46fc289a8776ba253e97d01d6948fb1031ea1973 (patch)
treeb16a99c60f21b04c001f29862bf2ee16ae3a0e00 /zen/thread.h
parent6.15 (diff)
downloadFreeFileSync-46fc289a8776ba253e97d01d6948fb1031ea1973.tar.gz
FreeFileSync-46fc289a8776ba253e97d01d6948fb1031ea1973.tar.bz2
FreeFileSync-46fc289a8776ba253e97d01d6948fb1031ea1973.zip
7.0
Diffstat (limited to 'zen/thread.h')
-rw-r--r--zen/thread.h2
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;
}
bgstack15