diff --git a/test/test_erf.cpp b/test/test_erf.cpp index d01f8024d..504484711 100644 --- a/test/test_erf.cpp +++ b/test/test_erf.cpp @@ -16,6 +16,7 @@ # pragma GCC diagnostic ignored "-Wliteral-range" #endif +#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error #include #include "test_erf.hpp" diff --git a/test/test_gamma.cpp b/test/test_gamma.cpp index 565d5888a..fb86080d7 100644 --- a/test/test_gamma.cpp +++ b/test/test_gamma.cpp @@ -7,6 +7,7 @@ #include #endif +#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error #include #include "test_gamma.hpp" diff --git a/test/test_gamma.hpp b/test/test_gamma.hpp index 729a8266d..7376573ad 100644 --- a/test/test_gamma.hpp +++ b/test/test_gamma.hpp @@ -4,8 +4,6 @@ // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error - #include #include #include