diff --git a/ostd/coroutine.hh b/ostd/coroutine.hh index b660fca..ad0689f 100644 --- a/ostd/coroutine.hh +++ b/ostd/coroutine.hh @@ -256,7 +256,7 @@ struct coroutine: detail::coro_base { } private: R call(A ...args) { - if constexpr(sizeof...(A)) { + if constexpr(sizeof...(A) != 0) { this->p_args = std::forward_as_tuple(std::forward(args)...); } this->p_ctx.call(); @@ -267,7 +267,7 @@ private: template R call_helper(std::index_sequence) { - if constexpr(sizeof...(A)) { + if constexpr(sizeof...(A) != 0) { return p_func(*this, std::forward(std::get(this->p_args))...); } else { return p_func(*this);