2
0
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:
Oliver Kowalke
2013-08-18 19:46:03 +02:00
parent 9010909a6a
commit 87f10d7d70

View File

@@ -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);