From 2756b3554ef13455fe69fcf9618d2d66c8fab093 Mon Sep 17 00:00:00 2001 From: Mirek Fidler Date: Sun, 20 Apr 2025 13:51:25 +0200 Subject: [PATCH] Core: SubRange const issue fix --- uppsrc/Core/Range.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uppsrc/Core/Range.h b/uppsrc/Core/Range.h index e8d8d5164..4da9efb75 100644 --- a/uppsrc/Core/Range.h +++ b/uppsrc/Core/Range.h @@ -22,7 +22,8 @@ public: SubRangeClass& Write() { return *this; } - value_type& operator[](int i) const { ASSERT(i >= 0 && i < count); return l[i]; } + value_type& operator[](int i) { ASSERT(i >= 0 && i < count); return l[i]; } + const value_type& operator[](int i) const { ASSERT(i >= 0 && i < count); return l[i]; } I begin() const { return l; } I end() const { return l + count; }