Merge pull request #12053 from neheb/lo
[feed/packages.git] / libs / boost / patches / 005-math.patch
1 Index: boost_1_72_0/boost/math/tools/roots.hpp
2 ===================================================================
3 --- boost_1_72_0.orig/boost/math/tools/roots.hpp
4 +++ boost_1_72_0/boost/math/tools/roots.hpp
5 @@ -884,7 +884,11 @@ inline T discriminant(T const& a, T cons
6 template<class T>
7 std::pair<T, T> quadratic_roots_imp(T const& a, T const& b, T const& c)
8 {
9 - using std::copysign;
10 + #if defined(BOOST_GNU_STDLIB) && !defined(_GLIBCXX_USE_C99_MATH_TR1)
11 + using boost::math::copysign;
12 + #else
13 + using std::copysign;
14 + #endif
15 using std::sqrt;
16 if constexpr (std::is_floating_point<T>::value)
17 {