diff --git a/ostd/coroutine.hh b/ostd/coroutine.hh index 92e2c5d..3202eb8 100644 --- a/ostd/coroutine.hh +++ b/ostd/coroutine.hh @@ -205,10 +205,8 @@ namespace detail { template struct coroutine: detail::coro_base { - coroutine( - std::function &, A...)> func, - size_t ss = COROUTINE_DEFAULT_STACK_SIZE - ): + template + coroutine(F func, size_t ss = COROUTINE_DEFAULT_STACK_SIZE): detail::coro_base(&context_call, ss), p_func(std::move(func)) {}