mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-16 01:12:29 +00:00
Revert "fix missng argument package in async()"
This reverts commit 47bd514720.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user