diff --git a/include/boost/coroutine2/detail/pull_control_block.ipp b/include/boost/coroutine2/detail/pull_control_block.ipp index fd806ec..55f1190 100644 --- a/include/boost/coroutine2/detail/pull_control_block.ipp +++ b/include/boost/coroutine2/detail/pull_control_block.ipp @@ -35,7 +35,7 @@ pull_coroutine< T >::control_block::control_block( context::preallocated palloc, other( nullptr), caller( boost::context::execution_context::current() ), callee( palloc, salloc, - [=,fn=std::forward< Fn >( fn_)] () mutable -> decltype( auto) { + [=,fn=std::forward< Fn >( fn_)] () mutable -> void { // create synthesized push_coroutine< T > typename push_coroutine< T >::control_block synthesized_cb( this); push_coroutine< T > synthesized( & synthesized_cb); @@ -110,7 +110,7 @@ pull_coroutine< T & >::control_block::control_block( context::preallocated pallo other( nullptr), caller( boost::context::execution_context::current() ), callee( palloc, salloc, - [=,fn=std::forward< Fn >( fn_)] () mutable -> decltype( auto) { + [=,fn=std::forward< Fn >( fn_)] () mutable -> void { // create synthesized push_coroutine< T > typename push_coroutine< T & >::control_block synthesized_cb( this); push_coroutine< T & > synthesized( & synthesized_cb); @@ -184,7 +184,7 @@ pull_coroutine< void >::control_block::control_block( context::preallocated pall other( nullptr), caller( boost::context::execution_context::current() ), callee( palloc, salloc, - [=,fn=std::forward< Fn >( fn_)] () mutable -> decltype( auto) { + [=,fn=std::forward< Fn >( fn_)] () mutable -> void { // create synthesized push_coroutine< T > typename push_coroutine< void >::control_block synthesized_cb( this); push_coroutine< void > synthesized( & synthesized_cb); diff --git a/include/boost/coroutine2/detail/push_control_block.ipp b/include/boost/coroutine2/detail/push_control_block.ipp index ebef509..f0a8d57 100644 --- a/include/boost/coroutine2/detail/push_control_block.ipp +++ b/include/boost/coroutine2/detail/push_control_block.ipp @@ -36,7 +36,7 @@ push_coroutine< T >::control_block::control_block( context::preallocated palloc, other( nullptr), caller( boost::context::execution_context::current() ), callee( palloc, salloc, - [=,fn=std::forward< Fn >( fn_)] () mutable -> decltype( auto) { + [=,fn=std::forward< Fn >( fn_)] () mutable -> void { // create synthesized pull_coroutine< T > typename pull_coroutine< T >::control_block synthesized_cb( this); pull_coroutine< T > synthesized( & synthesized_cb); @@ -134,7 +134,7 @@ push_coroutine< T & >::control_block::control_block( context::preallocated pallo other( nullptr), caller( boost::context::execution_context::current() ), callee( palloc, salloc, - [=,fn=std::forward< Fn >( fn_)] () mutable -> decltype( auto) { + [=,fn=std::forward< Fn >( fn_)] () mutable -> void { // create synthesized pull_coroutine< T > typename pull_coroutine< T & >::control_block synthesized_cb( this); pull_coroutine< T & > synthesized( & synthesized_cb); @@ -209,7 +209,7 @@ push_coroutine< void >::control_block::control_block( context::preallocated pall other( nullptr), caller( boost::context::execution_context::current() ), callee( palloc, salloc, - [=,fn=std::forward< Fn >( fn_)] () mutable -> decltype( auto) { + [=,fn=std::forward< Fn >( fn_)] () mutable -> void { // create synthesized pull_coroutine< T > typename pull_coroutine< void >::control_block synthesized_cb( this); pull_coroutine< void > synthesized( & synthesized_cb);