Collections const-correctness fix

This commit is contained in:
Mateusz Karbowiak
2024-10-30 21:06:16 +01:00
parent c0a1563402
commit 02db7d02f2
6 changed files with 26 additions and 26 deletions

View File

@@ -75,13 +75,13 @@ public:
return _allocation.Get()[_front];
}
FORCE_INLINE T& operator[](int32 index)
FORCE_INLINE T& operator[](const int32 index)
{
ASSERT(index >= 0 && index < _count);
return _allocation.Get()[(_front + index) % _capacity];
}
FORCE_INLINE const T& operator[](int32 index) const
FORCE_INLINE const T& operator[](const int32 index) const
{
ASSERT(index >= 0 && index < _count);
return _allocation.Get()[(_front + index) % _capacity];