2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Silence std::aligned_storage warnings as it's deprecated in C++23,

replace it with alignas() and a C array
This commit is contained in:
Kelebek1 2022-09-01 15:47:33 +01:00
parent a83a5d2e4c
commit f294b886db

View file

@ -11,7 +11,7 @@ namespace Common {
namespace detail { namespace detail {
template <typename T, size_t Size, size_t Align> template <typename T, size_t Size, size_t Align>
struct TypedStorageImpl { struct TypedStorageImpl {
std::aligned_storage_t<Size, Align> storage_; alignas(Align) u8 storage_[Size];
}; };
} // namespace detail } // namespace detail