2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-01 20:42:19 +00:00

tanh_sinh: add some missing using declarations.

This commit is contained in:
jzmaddock
2017-07-18 18:34:51 +01:00
parent d01778ed00
commit eb18bcd5aa
2 changed files with 4 additions and 1 deletions

View File

@@ -667,7 +667,7 @@ void tanh_sinh_detail<Real, Policy>::prune_to_min_complement(const Real& m)
{
for (unsigned row = 0; (row < m_abscissas.size()) && m_abscissas[row].size(); ++row)
{
typename std::vector<Real>::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<Real>::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());

View File

@@ -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;