We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 718f091 commit 62a23f8Copy full SHA for 62a23f8
src/support/coroutine.h
@@ -105,7 +105,7 @@ struct Coroutine {
105
return {};
106
}
107
void return_value(T &&value) { coroutine->m_value = std::forward(value); }
108
- Coroutine<T> coroutine = nullptr;
+ Coroutine<T> *coroutine = nullptr;
109
};
110
typedef typename std::conditional<std::is_void<T>::value, PromiseVoid, PromiseValue>::type Promise;
111
Coroutine(CoroutineHandle<Promise> &&handle) : m_handle(std::move(handle)) {}
0 commit comments