Untabify lightweight_test_with_fail

This commit is contained in:
Peter Dimov 2020-06-15 21:32:50 +03:00
parent c6d72da515
commit 35a025d59b

View File

@ -13,17 +13,17 @@ template <typename T>
struct with_tolerance
{
with_tolerance( T tolerance ): tolerance( tolerance )
{
}
{
}
bool operator()( T lhs, T rhs ) const
bool operator()( T lhs, T rhs ) const
{
return std::abs( lhs - rhs ) <= tolerance;
}
private:
T tolerance;
T tolerance;
};
void test_tolerance_predicate()