diff --git a/include/boost/poly_collection/detail/value_holder.hpp b/include/boost/poly_collection/detail/value_holder.hpp index fe06efd..b4cef22 100644 --- a/include/boost/poly_collection/detail/value_holder.hpp +++ b/include/boost/poly_collection/detail/value_holder.hpp @@ -1,4 +1,4 @@ -/* Copyright 2016-2018 Joaquin M Lopez Munoz. +/* Copyright 2016-2022 Joaquin M Lopez Munoz. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) @@ -58,7 +58,7 @@ template class value_holder_base { protected: - typename std::aligned_storage::type s; + alignas(T) unsigned char s[sizeof(T)]; }; template