Closed Spongman closed 1 year ago
Thanks for your report, can you check whether coroutine support is detected in https://github.com/Naios/continuable/blob/master/include/continuable/detail/features.hpp ? Is it possible that clang 14 still might require a compiler flag to enable coroutines?
i don't think that's it. here is latest master failing with clang 15: https://gcc.godbolt.org/z/ThcnbMKK5
<source>:16:23: error: this function cannot be a coroutine: 'std::coroutine_traits<cti::continuable_base<cti::detail::erasure::continuation<int>, cti::detail::identity<int>>>' has no member named 'promise_type'
ah. i take it back, it looks like the clang detection is wrong.
#elif defined(__clang__) // Clang
#if defined(__cpp_coroutines) && (__cpp_coroutines >= 201707)
#define CONTINUABLE_HAS_COROUTINE 1
#define CONTINUABLE_HAS_EXPERIMENTAL_COROUTINE 1
#endif // defined(__cpp_coroutines) && (__cpp_coroutines >= 201707)
clang master reports 201703L
.
@Naios
I have been using gcc10 on centos7, and that has been working fine, but i just tried clang on ubuntu, and i'm getting this error:
I tried both libstdc++ & libc++, same error.
I also found it odd that I needed to explicitly include
<coroutine>
...master
Your Environment