table: fixed operator< for table iterators

This commit is contained in:
Michele Caini
2024-04-29 09:00:44 +02:00
parent caaf332af3
commit 48353cd4dc

View File

@@ -125,7 +125,7 @@ template<typename... Lhs, typename... Rhs>
template<typename... Lhs, typename... Rhs>
[[nodiscard]] constexpr bool operator<(const table_iterator<Lhs...> &lhs, const table_iterator<Rhs...> &rhs) noexcept {
return std::get<0>(lhs.it) > std::get<0>(rhs.it);
return std::get<0>(lhs.it) < std::get<0>(rhs.it);
}
template<typename... Lhs, typename... Rhs>