diff --git a/src/optional.hh b/src/optional.hh index a72e15556..57147b43c 100644 --- a/src/optional.hh +++ b/src/optional.hh @@ -78,8 +78,8 @@ public: private: void destruct_ifn() { if (m_valid) m_value.~T(); } - bool m_valid; union { T m_value; }; + bool m_valid; }; }