“fixed” alignment in Option
This commit is contained in:
1 parent
ac369b7b83
commit
2809be87cc
1 file changed
+4
-1
@@ -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