mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Inline and default LazyExpression's constructor
This commit is contained in:
		@@ -26,12 +26,6 @@ namespace Catch {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    LazyExpression::LazyExpression( bool isNegated )
 | 
			
		||||
    :   m_isNegated( isNegated )
 | 
			
		||||
    {}
 | 
			
		||||
 | 
			
		||||
    LazyExpression::LazyExpression( LazyExpression const& other ) : m_isNegated( other.m_isNegated ) {}
 | 
			
		||||
 | 
			
		||||
    auto operator << ( std::ostream& os, LazyExpression const& lazyExpr ) -> std::ostream& {
 | 
			
		||||
        if( lazyExpr.m_isNegated )
 | 
			
		||||
            os << "!";
 | 
			
		||||
 
 | 
			
		||||
@@ -27,8 +27,10 @@ namespace Catch {
 | 
			
		||||
        ITransientExpression const* m_transientExpression = nullptr;
 | 
			
		||||
        bool m_isNegated;
 | 
			
		||||
    public:
 | 
			
		||||
        LazyExpression( bool isNegated );
 | 
			
		||||
        LazyExpression( LazyExpression const& other );
 | 
			
		||||
        LazyExpression( bool isNegated ):
 | 
			
		||||
            m_isNegated(isNegated)
 | 
			
		||||
        {}
 | 
			
		||||
        LazyExpression(LazyExpression const& other) = default;
 | 
			
		||||
        LazyExpression& operator = ( LazyExpression const& ) = delete;
 | 
			
		||||
 | 
			
		||||
        explicit operator bool() const {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user