diff options
| author | 2021-10-20 15:17:50 -0700 | |
|---|---|---|
| committer | 2021-10-20 15:17:50 -0700 | |
| commit | b65314dc213b61218772bb75df6362b02666c88a (patch) | |
| tree | 685813e5c402326e30bba9daf6aff9d55cfb8b1a /src/common/alignment.h | |
| parent | Merge pull request #7197 from Moonlacer/tas_help_link (diff) | |
| parent | common/alignment: Fix VS2022 compilation (diff) | |
| download | yuzu-b65314dc213b61218772bb75df6362b02666c88a.tar.gz yuzu-b65314dc213b61218772bb75df6362b02666c88a.tar.xz yuzu-b65314dc213b61218772bb75df6362b02666c88a.zip | |
Merge pull request #7207 from ameerj/vs-2022
cmake: Update conan to support Visual Studio 2022
Diffstat (limited to 'src/common/alignment.h')
| -rw-r--r-- | src/common/alignment.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h index 1b56569d1..8570c7d3c 100644 --- a/src/common/alignment.h +++ b/src/common/alignment.h | |||
| @@ -64,7 +64,7 @@ public: | |||
| 64 | using propagate_on_container_copy_assignment = std::true_type; | 64 | using propagate_on_container_copy_assignment = std::true_type; |
| 65 | using propagate_on_container_move_assignment = std::true_type; | 65 | using propagate_on_container_move_assignment = std::true_type; |
| 66 | using propagate_on_container_swap = std::true_type; | 66 | using propagate_on_container_swap = std::true_type; |
| 67 | using is_always_equal = std::true_type; | 67 | using is_always_equal = std::false_type; |
| 68 | 68 | ||
| 69 | constexpr AlignmentAllocator() noexcept = default; | 69 | constexpr AlignmentAllocator() noexcept = default; |
| 70 | 70 | ||
| @@ -83,6 +83,11 @@ public: | |||
| 83 | struct rebind { | 83 | struct rebind { |
| 84 | using other = AlignmentAllocator<T2, Align>; | 84 | using other = AlignmentAllocator<T2, Align>; |
| 85 | }; | 85 | }; |
| 86 | |||
| 87 | template <typename T2, size_t Align2> | ||
| 88 | constexpr bool operator==(const AlignmentAllocator<T2, Align2>&) const noexcept { | ||
| 89 | return std::is_same_v<T, T2> && Align == Align2; | ||
| 90 | } | ||
| 86 | }; | 91 | }; |
| 87 | 92 | ||
| 88 | } // namespace Common | 93 | } // namespace Common |