updating comparisons

This commit is contained in:
Jordan Maples [MSFT] 2020-02-03 18:27:09 -08:00
parent 592c28c6d1
commit 49e7ed1ebf

View File

@ -271,7 +271,7 @@ namespace details
std::enable_if_t<std::is_same<std::remove_cv_t<Type2>, value_type>::value, int> = 0> std::enable_if_t<std::is_same<std::remove_cv_t<Type2>, value_type>::value, int> = 0>
constexpr bool operator<=(const span_iterator<Type2>& rhs) const noexcept constexpr bool operator<=(const span_iterator<Type2>& rhs) const noexcept
{ {
return !(*this > rhs); return !(rhs < *this);
} }
template < template <
@ -279,7 +279,7 @@ namespace details
std::enable_if_t<std::is_same<std::remove_cv_t<Type2>, value_type>::value, int> = 0> std::enable_if_t<std::is_same<std::remove_cv_t<Type2>, value_type>::value, int> = 0>
constexpr bool operator>=(const span_iterator<Type2>& rhs) const noexcept constexpr bool operator>=(const span_iterator<Type2>& rhs) const noexcept
{ {
return *!(this < rhs); return !(*this < rhs);
} }
#ifdef _MSC_VER #ifdef _MSC_VER