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