mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02: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