mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +08:00
Enable the feature detection based on __cplusplus
This commit is contained in:
parent
7e90187e50
commit
a02e9bdf89
@ -55,9 +55,12 @@
|
|||||||
#undef CONTINUABLE_WITH_EXCEPTIONS
|
#undef CONTINUABLE_WITH_EXCEPTIONS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__has_feature)
|
#if (defined(_MSC_VER) && defined(_HAS_CXX17) && _HAS_CXX17) || \
|
||||||
|
(__cplusplus >= 201703L)
|
||||||
|
#define CONTINUABLE_HAS_CXX17_CONSTEXPR_IF
|
||||||
|
#define CONTINUABLE_HAS_CXX17_FOLD_EXPRESSION
|
||||||
|
#elif defined(__has_feature)
|
||||||
#if __has_feature(cxx_if_constexpr)
|
#if __has_feature(cxx_if_constexpr)
|
||||||
// PR not merged into the clang master yet
|
|
||||||
#define CONTINUABLE_HAS_CXX17_CONSTEXPR_IF
|
#define CONTINUABLE_HAS_CXX17_CONSTEXPR_IF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user