Remove <algorithm> header from the common path

It was only used for std::max<double> within Approx, so we now have
::Catch::Detail::max(double, double) that is used instead.
This commit is contained in:
Martin Hořeňovský 2017-08-17 15:34:00 +02:00
parent f99f511155
commit 597fca3c89
2 changed files with 10 additions and 2 deletions

View file

@ -13,6 +13,13 @@
namespace Catch {
namespace Detail {
double max(double lhs, double rhs) {
if (lhs < rhs) {
return rhs;
}
return lhs;
}
Approx::Approx ( double value )
: m_epsilon( std::numeric_limits<float>::epsilon()*100 ),
m_margin( 0.0 ),