diff --git a/include/boost/fiber/future/async.hpp b/include/boost/fiber/future/async.hpp index e85f5aef..f8118b36 100644 --- a/include/boost/fiber/future/async.hpp +++ b/include/boost/fiber/future/async.hpp @@ -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);