diff --git a/src/support/coroutine.h b/src/support/coroutine.h index 12996aef2..7410dfb2a 100644 --- a/src/support/coroutine.h +++ b/src/support/coroutine.h @@ -105,7 +105,7 @@ struct Coroutine { return {}; } void return_value(T &&value) { coroutine->m_value = std::forward(value); } - Coroutine coroutine = nullptr; + Coroutine *coroutine = nullptr; }; typedef typename std::conditional::value, PromiseVoid, PromiseValue>::type Promise; Coroutine(CoroutineHandle &&handle) : m_handle(std::move(handle)) {}