mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Integrated new section tracker.
- also pass extra section to reporter - one for each test case - ignore it in headers (this is so we know a test case has restarted) - significant effect on regression test due to change of ordering of sections - fixes infinite loop issue
This commit is contained in:
		@@ -34,12 +34,18 @@ namespace Catch {
 | 
			
		||||
                nullableValue = new( storage ) T( *_other );
 | 
			
		||||
            return *this;
 | 
			
		||||
        }
 | 
			
		||||
        Option& operator = ( T const& _value ) {
 | 
			
		||||
            reset();
 | 
			
		||||
            nullableValue = new( storage ) T( _value );
 | 
			
		||||
            return *this;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        void reset() {
 | 
			
		||||
            if( nullableValue )
 | 
			
		||||
                nullableValue->~T();
 | 
			
		||||
            nullableValue = NULL;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        T& operator*() { return *nullableValue; }
 | 
			
		||||
        T const& operator*() const { return *nullableValue; }
 | 
			
		||||
        T* operator->() { return nullableValue; }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user