mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-30 08:27:52 +00:00
Removed templates from Approx (just uses double)
This commit is contained in:
parent
89d1e6c4f1
commit
6b6143ccd4
3 changed files with 11 additions and 19 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue