mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-03 09:02:17 +00:00
fix template arg for packaged_task in asnyc()
This commit is contained in:
@@ -24,7 +24,7 @@ template< typename R >
|
||||
future< R >
|
||||
async( R( *f)() )
|
||||
{
|
||||
packaged_task< R > pt( f);
|
||||
packaged_task< R() > pt( f);
|
||||
future< R > fi( pt.get_future() );
|
||||
fiber( move( pt) ).detach();
|
||||
return move( fi);
|
||||
|
||||
Reference in New Issue
Block a user