diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 7770a9c2..684aefdd 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1130,11 +1130,11 @@ _STL_RESTORE_DEPRECATED_WARNING constexpr static float const mlf = 0.875f; template -union storage +union uninitialized_storage { T t_; - storage(){} - ~storage(){} + uninitialized_storage(){} + ~uninitialized_storage(){} }; template @@ -1449,8 +1449,8 @@ public: emplace_type,element_type >::type; - storage s; - auto *p=std::addressof(s.t_); + uninitialized_storage s; + auto *p=std::addressof(s.t_); type_policy::construct(al(),p,std::forward(args)...);