mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- fixed compilation with MSVC 16.5.0 when using std::sort() with TArray<>
error C2676: binary '[': 'TIterator<T>' does not define this operator or a conversion to a type acceptable to the predefined operator
This commit is contained in:
parent
f1b7707f7a
commit
b923f9612b
1 changed files with 4 additions and 0 deletions
|
@ -78,6 +78,10 @@ public:
|
||||||
TIterator operator-(difference_type offset) const { return TIterator(m_ptr - offset); }
|
TIterator operator-(difference_type offset) const { return TIterator(m_ptr - offset); }
|
||||||
difference_type operator-(const TIterator &other) const { return m_ptr - other.m_ptr; }
|
difference_type operator-(const TIterator &other) const { return m_ptr - other.m_ptr; }
|
||||||
|
|
||||||
|
// Random access operators
|
||||||
|
T& operator[](difference_type i) { return m_ptr[i]; }
|
||||||
|
const T& operator[](difference_type i) const { return m_ptr[i]; }
|
||||||
|
|
||||||
T &operator*() { return *m_ptr; }
|
T &operator*() { return *m_ptr; }
|
||||||
const T &operator*() const { return *m_ptr; }
|
const T &operator*() const { return *m_ptr; }
|
||||||
T* operator->() { return m_ptr; }
|
T* operator->() { return m_ptr; }
|
||||||
|
|
Loading…
Reference in a new issue