We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96067ad + 3e9dc96 commit d28a332Copy full SHA for d28a332
include/fast_float/constexpr_feature_detect.h
@@ -8,7 +8,7 @@
8
#endif
9
10
// Testing for https://wg21.link/N3652, adopted in C++14
11
-#if __cpp_constexpr >= 201304
+#if defined(__cpp_constexpr) && __cpp_constexpr >= 201304
12
#define FASTFLOAT_CONSTEXPR14 constexpr
13
#else
14
#define FASTFLOAT_CONSTEXPR14
@@ -29,6 +29,7 @@
29
30
// Testing for relevant C++20 constexpr library features
31
#if FASTFLOAT_HAS_IS_CONSTANT_EVALUATED && FASTFLOAT_HAS_BIT_CAST && \
32
+ defined(__cpp_lib_constexpr_algorithms) && \
33
__cpp_lib_constexpr_algorithms >= 201806L /*For std::copy and std::fill*/
34
#define FASTFLOAT_CONSTEXPR20 constexpr
35
#define FASTFLOAT_IS_CONSTEXPR 1
0 commit comments