diff --git a/include/gsl/span b/include/gsl/span index 16add83..170c746 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -271,7 +271,7 @@ namespace details std::enable_if_t, value_type>::value, int> = 0> constexpr bool operator<=(const span_iterator& rhs) const noexcept { - return !(*this > rhs); + return !(rhs < *this); } template < @@ -279,7 +279,7 @@ namespace details std::enable_if_t, value_type>::value, int> = 0> constexpr bool operator>=(const span_iterator& rhs) const noexcept { - return *!(this < rhs); + return !(*this < rhs); } #ifdef _MSC_VER