From eb18bcd5aaebc156e79d3adf309b85af9bf42263 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Tue, 18 Jul 2017 18:34:51 +0100 Subject: [PATCH] tanh_sinh: add some missing using declarations. --- include/boost/math/quadrature/detail/tanh_sinh_detail.hpp | 2 +- test/tanh_sinh_quadrature_test.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp b/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp index 8d658159e..a40c7bdea 100644 --- a/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp +++ b/include/boost/math/quadrature/detail/tanh_sinh_detail.hpp @@ -667,7 +667,7 @@ void tanh_sinh_detail::prune_to_min_complement(const Real& m) { for (unsigned row = 0; (row < m_abscissas.size()) && m_abscissas[row].size(); ++row) { - typename std::vector::iterator pos = std::lower_bound(m_abscissas[row].begin(), m_abscissas[row].end(), m, [](const Real& a, const Real& b) { return fabs(a) > fabs(b); }); + typename std::vector::iterator pos = std::lower_bound(m_abscissas[row].begin(), m_abscissas[row].end(), m, [](const Real& a, const Real& b) { using std::fabs; return fabs(a) > fabs(b); }); if (pos != m_abscissas[row].end()) { m_abscissas[row].erase(pos, m_abscissas[row].end()); diff --git a/test/tanh_sinh_quadrature_test.cpp b/test/tanh_sinh_quadrature_test.cpp index c9404d8a7..4c9698488 100644 --- a/test/tanh_sinh_quadrature_test.cpp +++ b/test/tanh_sinh_quadrature_test.cpp @@ -58,6 +58,9 @@ using std::sinh; using std::tanh; using std::cosh; using std::pow; +using std::exp; +using std::sin; +using std::cos; using std::string; using boost::multiprecision::cpp_bin_float_50; using boost::multiprecision::cpp_bin_float_100;