Skip to content

Commit

Permalink
B doctest fix for Visual Studio
Browse files Browse the repository at this point in the history
https: //github.com/doctest/doctest/pull/258
Co-Authored-By: Llewellyn Falco <isidore@users.noreply.github.com>
  • Loading branch information
claremacrae and isidore committed Jul 29, 2019
1 parent f238ecd commit d914f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/doctest.2.3.3.hpp
Expand Up @@ -3432,7 +3432,7 @@ Approx& Approx::scale(double newScale) {
bool operator==(double lhs, const Approx& rhs) {
// Thanks to Richard Harris for his help refining this formula
return std::fabs(lhs - rhs.m_value) <
rhs.m_epsilon * (rhs.m_scale + std::max(std::fabs(lhs), std::fabs(rhs.m_value)));
rhs.m_epsilon * (rhs.m_scale + std::max<double>(std::fabs(lhs), std::fabs(rhs.m_value)));
}
bool operator==(const Approx& lhs, double rhs) { return operator==(rhs, lhs); }
bool operator!=(double lhs, const Approx& rhs) { return !operator==(lhs, rhs); }
Expand Down

0 comments on commit d914f32

Please sign in to comment.