From f294b886dbb6e34895da90dfb834c454ee3638de Mon Sep 17 00:00:00 2001 From: Kelebek1 Date: Thu, 1 Sep 2022 15:47:33 +0100 Subject: Silence std::aligned_storage warnings as it's deprecated in C++23, replace it with alignas() and a C array --- src/common/parent_of_member.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/parent_of_member.h b/src/common/parent_of_member.h index 70b1c5624..8e03f17d8 100644 --- a/src/common/parent_of_member.h +++ b/src/common/parent_of_member.h @@ -11,7 +11,7 @@ namespace Common { namespace detail { template struct TypedStorageImpl { - std::aligned_storage_t storage_; + alignas(Align) u8 storage_[Size]; }; } // namespace detail -- cgit v1.2.3