diff --git a/ostd/coroutine.hh b/ostd/coroutine.hh index 7bd5e70..12cee34 100644 --- a/ostd/coroutine.hh +++ b/ostd/coroutine.hh @@ -565,7 +565,7 @@ private: /* we can use a pointer because even stack values are alive * as long as the coroutine is alive (and it is on every yield) */ - std::decay_t *p_result = nullptr; + std::remove_reference_t *p_result = nullptr; }; template