asio icon indicating copy to clipboard operation
asio copied to clipboard

clang __cpp_coroutines check undefined error

Open ksherlock opened this issue 3 years ago • 1 comments

With -Werror and -Wundef, the clang __cpp_coroutines check can cause an error. (error: '__cpp_coroutines' is not defined, evaluates to 0 [-Werror,-Wundef]) Presumably the gcc __cpp_impl_coroutine checks would also suffer from this issue.

Error encountered with Apple clang version 11.0.0 (clang-1100.0.33.17)

ksherlock avatar Nov 14 '21 18:11 ksherlock

This style is recommended by the Committee - https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations. So I think usage of -Wundef + -Werror is a bad idea in general

viccpp avatar Nov 16 '21 06:11 viccpp