mirror of
https://github.com/microsoft/GSL.git
synced 2025-03-12 22:28:06 -04:00
updating comparisons
This commit is contained in:
parent
592c28c6d1
commit
49e7ed1ebf
@ -271,7 +271,7 @@ namespace details
|
||||
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
|
||||
{
|
||||
return !(*this > rhs);
|
||||
return !(rhs < *this);
|
||||
}
|
||||
|
||||
template <
|
||||
@ -279,7 +279,7 @@ namespace details
|
||||
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
|
||||
{
|
||||
return *!(this < rhs);
|
||||
return !(*this < rhs);
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
Loading…
x
Reference in New Issue
Block a user