Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Silence std::aligned_storage warnings as it's deprecated in C++23, replace it with alignas() and a C array

Kelebek1a0732144ba47
diff --git a/src/common/parent_of_member.h b/src/common/parent_of_member.h
index 70b1c56248..8e03f17d8b 100644
--- a/src/common/parent_of_member.h
+++ b/src/common/parent_of_member.h
@@ -11,7 +11,7 @@ namespace Common {
namespace detail {
template <typename T, size_t Size, size_t Align>
struct TypedStorageImpl {
- std::aligned_storage_t<Size, Align> storage_;
+ alignas(Align) u8 storage_[Size];
};
} // namespace detail