This patch updates __has_extension to report the C++1z extensions Clang offers
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
- Correctly report that structured bindings, inline variables, and fold expressions are available in C++03.
Comment Actions
@rsmith ping. I need this for http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0607r0.html
Comment Actions
Hi Eric,
I know this is old, but are you interested in reviving this patch? I don't know enough about clang's extensions to LGTM such a patch (updated for the current code), but would really like to have a way to know if extensions are supported.
We just now had people ask how to detect if if constexpr is available, and not having a feature check makes it much harder to figure out (and makes our test based on current clang behaviour).
Thank you,
Filipe