diff --git a/include/gsl/span b/include/gsl/span index c0bfea9..2cf6517 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -269,7 +269,7 @@ namespace details && lhs.index_ <= rhs.index_); // range must not be transposed } - cosntexpr void _Verify_offset(const difference_type n) const noexcpt + cosntexpr void _Verify_offset(const difference_type n) const noexcept { // test that the iterator *this + n is a valid range in an STL // algorithm call Expects((index_ + n) >= 0 && (index_ + n) <= span_->size()); @@ -288,7 +288,7 @@ namespace details constexpr void _Seek_to(const pointer p) noexcept { // adjust the position of *this to previously verified location p - // after _Unwrap + // after _Unwrapped index_ = p - span_->data(); } #endif