diff options
| author | 2022-09-01 15:47:33 +0100 | |
|---|---|---|
| committer | 2022-09-01 16:50:41 +0100 | |
| commit | f294b886dbb6e34895da90dfb834c454ee3638de (patch) | |
| tree | 9f98c65807f4a8c0c6f381ea97ef280d08ab3dc3 /src/common/parent_of_member.h | |
| parent | Merge pull request #8752 from vonchenplus/rectangle_texture (diff) | |
| download | yuzu-f294b886dbb6e34895da90dfb834c454ee3638de.tar.gz yuzu-f294b886dbb6e34895da90dfb834c454ee3638de.tar.xz yuzu-f294b886dbb6e34895da90dfb834c454ee3638de.zip | |
Silence std::aligned_storage warnings as it's deprecated in C++23,
replace it with alignas() and a C array
Diffstat (limited to 'src/common/parent_of_member.h')
| -rw-r--r-- | src/common/parent_of_member.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
| 11 | namespace detail { | 11 | namespace detail { |
| 12 | template <typename T, size_t Size, size_t Align> | 12 | template <typename T, size_t Size, size_t Align> |
| 13 | struct TypedStorageImpl { | 13 | struct TypedStorageImpl { |
| 14 | std::aligned_storage_t<Size, Align> storage_; | 14 | alignas(Align) u8 storage_[Size]; |
| 15 | }; | 15 | }; |
| 16 | } // namespace detail | 16 | } // namespace detail |
| 17 | 17 | ||