replaced deprecated std::aligned_storage

This commit is contained in:
joaquintides
2022-11-03 16:51:58 +01:00
parent 36f58382aa
commit fd456f781e
@@ -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<typename T>
class value_holder_base
{
protected:
typename std::aligned_storage<sizeof(T),alignof(T)>::type s;
alignas(T) unsigned char s[sizeof(T)];
};
template<typename T>