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 e88d9ae commit 325c723Copy full SHA for 325c723
tests/basictest.cpp
@@ -21,6 +21,16 @@
21
#endif // #ifndef FASTFLOAT_CONSTEXPR_TESTS
22
#endif // FASTFLOAT_IS_CONSTEXPR
23
24
+// MSVC's constexpr evaluation and some constexpr-friendly std library pieces
25
+// (like i/o and certain std::numeric_limits members) aren't suitable for the
26
+// compile-time tests in this file on MSVC; disable the constexpr tests when
27
+// compiling with MSVC (but allow them for clang/clang-cl).
28
+#if defined(_MSC_VER) && !defined(__clang__)
29
+# ifdef FASTFLOAT_CONSTEXPR_TESTS
30
+# undef FASTFLOAT_CONSTEXPR_TESTS
31
+# endif
32
+#endif
33
+
34
#if FASTFLOAT_HAS_BIT_CAST
35
#include <bit>
36
#endif
0 commit comments