Skip to content

Commit 445e36a

Browse files
committed
Reorder overflow checks
1 parent 87048d9 commit 445e36a

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_erf.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# pragma GCC diagnostic ignored "-Wliteral-range"
1717
#endif
1818

19+
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
1920
#include <boost/math/special_functions/erf.hpp>
2021
#include "test_erf.hpp"
2122

test/test_gamma.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <pch_light.hpp>
88
#endif
99

10+
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
1011
#include <boost/math/special_functions/gamma.hpp>
1112
#include "test_gamma.hpp"
1213

test/test_gamma.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// Boost Software License, Version 1.0. (See accompanying file
55
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
66

7-
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
8-
97
#include <boost/math/tools/config.hpp>
108
#include <boost/math/concepts/real_concept.hpp>
119
#include <boost/math/special_functions/math_fwd.hpp>

0 commit comments

Comments
 (0)