From a1c3c9fb80c7f6d80a877e092bd61d1332ada1ea Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Fri, 26 Mar 2021 04:25:29 +0100 Subject: [PATCH] [test] Fix compilation error caused by abs() call. --- test/expectation_limits.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/expectation_limits.hpp b/test/expectation_limits.hpp index eda85d706..ba7585803 100644 --- a/test/expectation_limits.hpp +++ b/test/expectation_limits.hpp @@ -2,6 +2,10 @@ // 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, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) @@ -40,7 +44,9 @@ struct expectation_limits template 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