🚑 the last commit contained a bug #821

This commit is contained in:
Niels Lohmann 2017-11-26 10:15:23 +01:00
parent 430f03512c
commit cc937deaf6
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -553,7 +553,7 @@ inline bool operator<(const value_t lhs, const value_t rhs) noexcept
const auto l_index = static_cast<std::size_t>(lhs); const auto l_index = static_cast<std::size_t>(lhs);
const auto r_index = static_cast<std::size_t>(rhs); const auto r_index = static_cast<std::size_t>(rhs);
return (l_index < order.size() and r_index <= order.size() and order[l_index] < order[r_index]); return (l_index < order.size() and r_index < order.size() and order[l_index] < order[r_index]);
} }