We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 61ac598 + 7af6818 commit 5b0f54eCopy full SHA for 5b0f54e
include/xtensor-python/pystrides_adaptor.hpp
@@ -79,7 +79,7 @@ namespace xt
79
inline reference operator*() const { return *p_current / N; }
80
inline pointer operator->() const { return p_current; }
81
82
- inline reference operator[](difference_type n) { return *(p_current + n) / N; }
+ inline reference operator[](difference_type n) const { return *(p_current + n) / N; }
83
84
inline self_type& operator++()
85
{
0 commit comments