Skip to content

Commit

Permalink
Fix basic_yield_context support for completion signatures with refere…
Browse files Browse the repository at this point in the history
…nce parameters.
  • Loading branch information
chriskohlhoff committed Mar 30, 2018
1 parent bf70ad6 commit 450e650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asio/include/asio/impl/spawn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class async_result<basic_yield_context<Handler>, ReturnType(Arg1)>
explicit async_result(
typename detail::coro_async_result<Handler,
typename decay<Arg1>::type>::completion_handler_type& h)
: detail::coro_async_result<Handler, Arg1>(h)
: detail::coro_async_result<Handler, typename decay<Arg1>::type>(h)
{
}
};
Expand Down Expand Up @@ -272,7 +272,7 @@ class async_result<basic_yield_context<Handler>,
explicit async_result(
typename detail::coro_async_result<Handler,
typename decay<Arg2>::type>::completion_handler_type& h)
: detail::coro_async_result<Handler, Arg2>(h)
: detail::coro_async_result<Handler, typename decay<Arg2>::type>(h)
{
}
};
Expand Down

0 comments on commit 450e650

Please sign in to comment.