Support C++20 feature testing
Open
- Dominant language
- C++
- Stars
- 29
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
C++20 introduces a special predefined macro `__has_cpp_attribute()` along with a set of predefined language feature macros, all described [here](https://en.cppreference.com/w/cpp/feature_test). I think that at minimum `__has_cpp_attribute()` should be defined in C++20 mode, even if it always evaluates to `true`.
What's less clear to me is whether, and how, the return values should be user-programmable (e.g. for emulating a specific compiler version).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.