mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	“fixed” alignment in Option
This commit is contained in:
		@@ -66,7 +66,10 @@ namespace Catch {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    private:
 | 
			
		||||
        T* nullableValue;
 | 
			
		||||
        union {
 | 
			
		||||
            T *nullableValue;
 | 
			
		||||
            long double _; // Forces alignment for the storage, following
 | 
			
		||||
        };
 | 
			
		||||
        char storage[sizeof(T)];
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user