-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Rearrange feature test macros #2510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
7e2b143 to
78ba33d
Compare
Confirmed. IIRC (maybe @joemmett remembers better) we waffled a bit on whether we wanted to define When porting this change internally, we should add a commit to remove the |
Correct. Looking back at the original PR the first implementation sensed
We can do that, we just need to make sure nobody is depending on this define (a quick search didn't turn up anything). |
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
|
Thanks for sweeping up this mess! 🧹 |
Fixes #2135.
Note: I noticed that cl defines
__cpp_impl_coroutinewhen/await:strictis on, so I believe that there's no need to checkdefined(_DOWNLEVEL_COROUTINES_SUPPORTED). I also relocated the definition of__cpp_lib_coroutineto make it next to the other C++20 feature-test macro that's not guarded by_HAS_CXX20.