diff options
| author | Phil Nash | 2011-05-31 07:51:04 +0100 |
|---|---|---|
| committer | Phil Nash | 2011-05-31 07:51:04 +0100 |
| commit | 6b6143ccd4a5c38acf64f06e24967e8e96aecb38 (patch) | |
| tree | 3a44f76377679a83c1e11f758a29761d9554a87c /include | |
| parent | 89d1e6c4f11f2917a6d1e0210816b9a0a763d4d9 (diff) | |
| download | catch3-6b6143ccd4a5c38acf64f06e24967e8e96aecb38.tar.gz | |
Removed templates from Approx (just uses double)
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_approx.hpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/internal/catch_approx.hpp b/include/internal/catch_approx.hpp index 5630e3a2..37d54f37 100644 --- a/include/internal/catch_approx.hpp +++ b/include/internal/catch_approx.hpp @@ -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 ); |