Fixed C++20 deprecation warning for std::rel_ops::operator<=

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2025-08-01 20:14:17 +02:00
committed by Konstantin Pastbin
parent 2aaf37e9ee
commit 7781528263
4 changed files with 13 additions and 5 deletions

View File

@@ -23,9 +23,7 @@ struct Uint64IndexValue
explicit Uint64IndexValue(uint64_t featureId) : m_featureId(featureId) {}
bool operator<(Uint64IndexValue const & o) const { return m_featureId < o.m_featureId; }
bool operator==(Uint64IndexValue const & o) const { return m_featureId == o.m_featureId; }
auto operator<=>(Uint64IndexValue const &) const = default;
void Swap(Uint64IndexValue & o) { std::swap(m_featureId, o.m_featureId); }