From 520c72d777f485775439f4b98b3b7e86c07501e2 Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Mon, 18 Jul 2016 12:00:33 -0700 Subject: [PATCH] Tidied up assertion. --- include/span.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/span.h b/include/span.h index 3f3b8fe..6fe3bff 100644 --- a/include/span.h +++ b/include/span.h @@ -212,8 +212,8 @@ public: constexpr const_span_iterator& operator+=(difference_type n) noexcept { + Expects(span_ && (index_ + n) >= 0 && (index_ + n) <= span_->length()); index_ += n; - Expects(span_ && index_ >= 0 && index_ <= span_->length()); return *this; }