mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Removed templates from Approx (just uses double)
This commit is contained in:
		@@ -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 );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user