diff --git a/test/test_out_of_range.hpp b/test/test_out_of_range.hpp index bed4e48a0..8b7e723c0 100644 --- a/test/test_out_of_range.hpp +++ b/test/test_out_of_range.hpp @@ -8,6 +8,7 @@ #ifndef BOOST_MATH_TEST_OUT_OF_RANGE_HPP #define BOOST_MATH_TEST_OUT_OF_RANGE_HPP +#include #include #include @@ -30,6 +31,11 @@ but does *not* check finite but out-of-range parameters to the constructor because these are specific to each distribution. */ +#if defined(BOOST_CHECK_THROW) && defined(BOOST_MATH_NO_EXCEPTIONS) +# undef BOOST_CHECK_THROW +# define BOOST_CHECK_THROW(x, y) +#endif + #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4127)