mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 23:36:11 +01:00
Tweaked storage alignment "workaround" a bit more in Option.
This commit is contained in:
parent
8e8259091c
commit
eedcc82d31
@ -66,11 +66,14 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
union {
|
|
||||||
T *nullableValue;
|
T *nullableValue;
|
||||||
long double _; // Forces alignment for the storage, following
|
union {
|
||||||
};
|
|
||||||
char storage[sizeof(T)];
|
char storage[sizeof(T)];
|
||||||
|
|
||||||
|
// These are here to force alignment for the storage
|
||||||
|
long double dummy1;
|
||||||
|
long long dummy2;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace Catch
|
} // end namespace Catch
|
||||||
|
Loading…
Reference in New Issue
Block a user