Skip to content

Commit 62a23f8

Browse files
Fix coroutine build on AppleClang 17
1 parent 718f091 commit 62a23f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/support/coroutine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ struct Coroutine {
105105
return {};
106106
}
107107
void return_value(T &&value) { coroutine->m_value = std::forward(value); }
108-
Coroutine<T> coroutine = nullptr;
108+
Coroutine<T> *coroutine = nullptr;
109109
};
110110
typedef typename std::conditional<std::is_void<T>::value, PromiseVoid, PromiseValue>::type Promise;
111111
Coroutine(CoroutineHandle<Promise> &&handle) : m_handle(std::move(handle)) {}

0 commit comments

Comments
 (0)