mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-09 23:24:02 +00:00
[test] Fix compilation error caused by abs() call.
This commit is contained in:
parent
1c9e1933b4
commit
a1c3c9fb80
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
// Copyright (c) 2020 Barend Gehrels, Amsterdam, the Netherlands.
|
// Copyright (c) 2020 Barend Gehrels, Amsterdam, the Netherlands.
|
||||||
|
|
||||||
|
// This file was modified by Oracle on 2021.
|
||||||
|
// Modifications copyright (c) 2021, Oracle and/or its affiliates.
|
||||||
|
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
||||||
|
|
||||||
// Use, modification and distribution is subject to the Boost Software License,
|
// Use, modification and distribution is subject to the Boost Software License,
|
||||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
@ -40,7 +44,9 @@ struct expectation_limits
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
bool contains_logarithmic(const T& value, double tolerance) const
|
bool contains_logarithmic(const T& value, double tolerance) const
|
||||||
{
|
{
|
||||||
return abs(log(value) - std::log(m_lower_limit)) < tolerance;
|
using std::abs;
|
||||||
|
using std::log;
|
||||||
|
return abs(log(value) - std::log(m_lower_limit)) < tolerance;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user