mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-24 21:49:24 +00:00
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:
parent
f99f511155
commit
597fca3c89
2 changed files with 10 additions and 2 deletions
|
@ -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 ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue