mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Core: SubRange const issue fix
This commit is contained in:
parent
a9e91ed4ed
commit
2756b3554e
1 changed files with 2 additions and 1 deletions
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue