diff --git a/source/mijin/container/stride_span.hpp b/source/mijin/container/stride_span.hpp index 33aed97..87770ca 100644 --- a/source/mijin/container/stride_span.hpp +++ b/source/mijin/container/stride_span.hpp @@ -229,7 +229,7 @@ template auto StrideSpan::operator[](size_type index) const -> const_reference { MIJIN_ASSERT(index < size(), "Attempting to access StrideSpan out of bounds."); - return byteoffset(begin_, index * strideBytes_); + return *byteoffset(begin_, index * strideBytes_); } } // namespace mijin