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.
1 parent 96067ad commit deb31c3Copy full SHA for deb31c3
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
@@ -28,7 +28,8 @@
28
29
30
// Testing for relevant C++20 constexpr library features
31
-#if FASTFLOAT_HAS_IS_CONSTANT_EVALUATED && FASTFLOAT_HAS_BIT_CAST && \
+#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