From 9b82bb5a720f32e3e7878550310b1151cac188b8 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 21 Jan 2010 15:12:46 +0000 Subject: Use std::future instead of std::unique_future to match N3000 draft and recent GCC 4.5 svn --- src/utils/async.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/utils/async.h b/src/utils/async.h index 85702c114..1ffa2c4cb 100644 --- a/src/utils/async.h +++ b/src/utils/async.h @@ -18,11 +18,11 @@ namespace Botan { * Will be removed once GCC supports it natively */ template -auto std_async(F f) -> std::unique_future +auto std_async(F f) -> std::future { typedef decltype(f()) result_type; std::packaged_task task(std::move(f)); - std::unique_future future = task.get_future(); + std::future future = task.get_future(); std::thread thread(std::move(task)); thread.detach(); return future; -- cgit v1.2.3