summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DiscIO/Volume.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/Volume.h b/Source/Core/DiscIO/Volume.h
index 1c216178c3..8ac6d113ed 100644
--- a/Source/Core/DiscIO/Volume.h
+++ b/Source/Core/DiscIO/Volume.h
@@ -32,10 +32,7 @@ struct Partition final
constexpr Partition() = default;
constexpr explicit Partition(u64 offset_) : offset(offset_) {}
constexpr bool operator==(const Partition& other) const { return offset == other.offset; }
- constexpr bool operator<(const Partition& other) const { return offset < other.offset; }
- constexpr bool operator>(const Partition& other) const { return other < *this; }
- constexpr bool operator<=(const Partition& other) const { return !(*this < other); }
- constexpr bool operator>=(const Partition& other) const { return !(*this > other); }
+ constexpr auto operator<=>(const Partition other) const { return offset <=> other.offset; }
u64 offset{std::numeric_limits<u64>::max()};
};