From dd374f3be49345deef3d5ccde43259315e6eb8a4 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Sun, 21 Jun 2015 19:01:43 +0200 Subject: [PATCH] Revert "fix missng argument package in async()" This reverts commit 47bd5147208b16a2974681bbdd7911189cfac1b3. --- include/boost/fiber/future/async.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/fiber/future/async.hpp b/include/boost/fiber/future/async.hpp index 30a2663f..1e840137 100644 --- a/include/boost/fiber/future/async.hpp +++ b/include/boost/fiber/future/async.hpp @@ -24,8 +24,7 @@ future< typename std::result_of< Fn( Args ... ) >::type > async( Fn && fn, Args && ... args) { typedef typename std::result_of< Fn( Args ... ) >::type result_type; - packaged_task< result_type( Args ... ) > pt( - std::forward< Fn >( fn), std::forward< Args >( args) ... ); + packaged_task< result_type( Args ... ) > pt( std::forward< Fn >( fn) ); future< result_type > f( pt.get_future() ); fiber( std::move( pt), std::forward< Args >( args) ... ).detach(); return std::move( f);