mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
gsl::index bug fix (#624)
Fixing a bug in the != operator in the gsl::index class
This commit is contained in:
parent
c87c123d1b
commit
13ce102ec0
@ -135,7 +135,7 @@ public:
|
|||||||
return std::equal(elems, elems + rank, rhs.elems);
|
return std::equal(elems, elems + rank, rhs.elems);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr bool operator!=(const index& rhs) const GSL_NOEXCEPT { return !(this == rhs); }
|
constexpr bool operator!=(const index& rhs) const GSL_NOEXCEPT { return !(*this == rhs); }
|
||||||
|
|
||||||
constexpr index operator+() const GSL_NOEXCEPT { return *this; }
|
constexpr index operator+() const GSL_NOEXCEPT { return *this; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user