gsl::index bug fix (#624)

Fixing a bug in the != operator in the gsl::index class
This commit is contained in:
caleb 2018-02-20 17:37:50 -05:00 committed by Neil MacIntosh
parent c87c123d1b
commit 13ce102ec0

View File

@ -135,7 +135,7 @@ public:
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; }