From d4d4b8e9d86b62f7a70746c51ba8f89c7ce8e372 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Fri, 23 Feb 2024 07:42:12 +0300 Subject: [PATCH] Tests: Boost.Math drops MSVC 14.0 support --- test/karma/real.hpp | 2 +- test/qi/real.hpp | 2 +- test/x3/real4.cpp | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/test/karma/real.hpp b/test/karma/real.hpp index 8894e2dcd5..1631be1653 100644 --- a/test/karma/real.hpp +++ b/test/karma/real.hpp @@ -20,7 +20,7 @@ #include "test.hpp" #ifdef _MSVC_LANG -# if _MSVC_LANG < 201402L +# if _MSC_VER < 1910 || _MSVC_LANG < 201402L # define BOOST_SPIRIT_NO_MATH_REAL_CONCEPT # endif #elif __cplusplus < 201402L diff --git a/test/qi/real.hpp b/test/qi/real.hpp index e908f74f2e..a0a3f30173 100644 --- a/test/qi/real.hpp +++ b/test/qi/real.hpp @@ -21,7 +21,7 @@ #include #ifdef _MSVC_LANG -# if _MSVC_LANG < 201402L +# if _MSC_VER < 1910 || _MSVC_LANG < 201402L # define BOOST_SPIRIT_NO_MATH_REAL_CONCEPT # endif #elif __cplusplus < 201402L diff --git a/test/x3/real4.cpp b/test/x3/real4.cpp index e103b34b15..f4ed5d7a05 100644 --- a/test/x3/real4.cpp +++ b/test/x3/real4.cpp @@ -8,6 +8,10 @@ http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ +#if defined(_MSC_VER) && _MSC_VER < 1910 +int main() {} +#else + #include "real.hpp" #include @@ -75,3 +79,4 @@ main() return boost::report_errors(); } +#endif