File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2628,8 +2628,8 @@ class strided_ptr {
26282628 strided_ptr operator --(int ) noexcept { strided_ptr temp = *this ; --(*this ); return temp; }
26292629 strided_ptr &operator +=(difference_type offset) noexcept { data_ += offset * stride_; return *this ; }
26302630 strided_ptr &operator -=(difference_type offset) noexcept { data_ -= offset * stride_; return *this ; }
2631- strided_ptr operator +(difference_type offset) noexcept { strided_ptr temp = *this ; return temp += offset; }
2632- strided_ptr operator -(difference_type offset) noexcept { strided_ptr temp = *this ; return temp -= offset; }
2631+ strided_ptr operator +(difference_type offset) const noexcept { strided_ptr temp = *this ; return temp += offset; }
2632+ strided_ptr operator -(difference_type offset) const noexcept { strided_ptr temp = *this ; return temp -= offset; }
26332633 friend difference_type operator -(strided_ptr const &a, strided_ptr const &b) noexcept { assert (a.stride_ == b.stride_ ); return (a.data_ - b.data_ ) / static_cast <difference_type>(a.stride_ ); }
26342634 friend bool operator ==(strided_ptr const &a, strided_ptr const &b) noexcept { return a.data_ == b.data_ ; }
26352635 friend bool operator <(strided_ptr const &a, strided_ptr const &b) noexcept { return a.data_ < b.data_ ; }
You can’t perform that action at this time.
0 commit comments