From 13ce102ec0d998aa65bb380f066c0fe869c7d168 Mon Sep 17 00:00:00 2001 From: caleb Date: Tue, 20 Feb 2018 17:37:50 -0500 Subject: [PATCH] gsl::index bug fix (#624) Fixing a bug in the != operator in the gsl::index class --- include/gsl/multi_span | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl/multi_span b/include/gsl/multi_span index 6ffd624..9dce739 100644 --- a/include/gsl/multi_span +++ b/include/gsl/multi_span @@ -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; }