diff --git a/include/iterator b/include/iterator index 04ff4c12..7f7e9ee1 100644 --- a/include/iterator +++ b/include/iterator @@ -575,7 +575,7 @@ public: _LIBCPP_INLINE_VISIBILITY reverse_iterator& operator-=(difference_type __n) {current += __n; return *this;} _LIBCPP_INLINE_VISIBILITY reference operator[](difference_type __n) const - {return current[-__n-1];} + {return *(*this + __n);} }; template