Rearrange feature test macros - #2510
Conversation
7e2b143 to
78ba33d
Compare
Confirmed. IIRC (maybe Jonathan Emmett (@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.