summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-10-20 03:08:18 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-10-20 07:22:00 +0200
commit1841f63a4057f238c758cab4a1580eb65a606ee4 (patch)
tree685813e5c402326e30bba9daf6aff9d55cfb8b1a /src/common
parentinput_common: Fix VS2022 compilation errors (diff)
downloadyuzu-1841f63a4057f238c758cab4a1580eb65a606ee4.tar
yuzu-1841f63a4057f238c758cab4a1580eb65a606ee4.tar.gz
yuzu-1841f63a4057f238c758cab4a1580eb65a606ee4.tar.bz2
yuzu-1841f63a4057f238c758cab4a1580eb65a606ee4.tar.lz
yuzu-1841f63a4057f238c758cab4a1580eb65a606ee4.tar.xz
yuzu-1841f63a4057f238c758cab4a1580eb65a606ee4.tar.zst
yuzu-1841f63a4057f238c758cab4a1580eb65a606ee4.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/alignment.h7
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:
using propagate_on_container_copy_assignment = std::true_type;
using propagate_on_container_move_assignment = std::true_type;
using propagate_on_container_swap = std::true_type;
- using is_always_equal = std::true_type;
+ using is_always_equal = std::false_type;
constexpr AlignmentAllocator() noexcept = default;
@@ -83,6 +83,11 @@ public:
struct rebind {
using other = AlignmentAllocator<T2, Align>;
};
+
+ template <typename T2, size_t Align2>
+ constexpr bool operator==(const AlignmentAllocator<T2, Align2>&) const noexcept {
+ return std::is_same_v<T, T2> && Align == Align2;
+ }
};
} // namespace Common