mirror of
https://github.com/boostorg/poly_collection.git
synced 2026-07-21 13:33:37 +00:00
replaced deprecated std::aligned_storage
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user