From 366b3e717f24386857c67fa5476a7f1f81aaf1d6 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Thu, 3 Nov 2022 16:46:47 +0100 Subject: [PATCH] replaced deprecated std::aligned_storage --- include/boost/poly_collection/detail/value_holder.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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