aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorcaleb <caleb.billman@gmail.com>2018-02-20 17:37:50 -0500
committerNeil MacIntosh <neilmac@fb.com>2018-02-20 14:37:50 -0800
commit13ce102ec0d998aa65bb380f066c0fe869c7d168 (patch)
treecc511d3ae9bdc882dacf9ea8c3c8e023d7dc1dda /include
parentc87c123d1b3e64ae2cf725584f0c004da4d90f1c (diff)
downloadplatform_external_Microsoft-GSL-13ce102ec0d998aa65bb380f066c0fe869c7d168.tar.gz
platform_external_Microsoft-GSL-13ce102ec0d998aa65bb380f066c0fe869c7d168.tar.bz2
platform_external_Microsoft-GSL-13ce102ec0d998aa65bb380f066c0fe869c7d168.zip
gsl::index bug fix (#624)
Fixing a bug in the != operator in the gsl::index class
Diffstat (limited to 'include')
-rw-r--r--include/gsl/multi_span2
1 files changed, 1 insertions, 1 deletions
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; }