aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-01-21 15:12:46 +0000
committerlloyd <[email protected]>2010-01-21 15:12:46 +0000
commit9b82bb5a720f32e3e7878550310b1151cac188b8 (patch)
tree96e8bff2cdd30b359eaaca8fc41887b16433da1b /src
parentfdc97d0ce2e7f45c07e263a1deca7a33029d33f2 (diff)
Use std::future instead of std::unique_future to match N3000 draft and
recent GCC 4.5 svn
Diffstat (limited to 'src')
-rw-r--r--src/utils/async.h4
1 files changed, 2 insertions, 2 deletions
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<typename F>
-auto std_async(F f) -> std::unique_future<decltype(f())>
+auto std_async(F f) -> std::future<decltype(f())>
{
typedef decltype(f()) result_type;
std::packaged_task<result_type ()> task(std::move(f));
- std::unique_future<result_type> future = task.get_future();
+ std::future<result_type> future = task.get_future();
std::thread thread(std::move(task));
thread.detach();
return future;