Removed templates from Approx (just uses double)

This commit is contained in:
Phil Nash 2011-05-31 07:51:04 +01:00
parent 89d1e6c4f1
commit 6b6143ccd4
3 changed files with 11 additions and 19 deletions

View file

@ -36,10 +36,9 @@ namespace Catch
}
///////////////////////////////////////////////////////////////////////////
template<typename T>
friend bool operator ==
(
const T& lhs,
double lhs,
const Approx& rhs
)
{
@ -48,21 +47,19 @@ namespace Catch
}
///////////////////////////////////////////////////////////////////////////
template<typename T>
friend bool operator ==
(
const Approx& lhs,
const T& rhs
double rhs
)
{
return operator==( rhs, lhs );
}
///////////////////////////////////////////////////////////////////////////
template<typename T>
friend bool operator !=
(
const T& lhs,
double lhs,
const Approx& rhs
)
{
@ -70,11 +67,10 @@ namespace Catch
}
///////////////////////////////////////////////////////////////////////////
template<typename T>
friend bool operator !=
(
const Approx& lhs,
const T& rhs
double rhs
)
{
return !operator==( rhs, lhs );