diff --git a/include/internal/catch_option.hpp b/include/internal/catch_option.hpp index 5413abf0..61175ae9 100644 --- a/include/internal/catch_option.hpp +++ b/include/internal/catch_option.hpp @@ -66,7 +66,10 @@ namespace Catch { } private: - T* nullableValue; + union { + T *nullableValue; + long double _; // Forces alignment for the storage, following + }; char storage[sizeof(T)]; };