Merge pull request #52026 from Calinou/constiterator-fix-const
Fix ConstIterator to allow `for` range loops on Packed*Array
This commit is contained in:
commit
ac7541c1b1
|
@ -229,7 +229,7 @@ public:
|
||||||
_FORCE_INLINE_ bool operator==(const ConstIterator &b) const { return elem_ptr == b.elem_ptr; }
|
_FORCE_INLINE_ bool operator==(const ConstIterator &b) const { return elem_ptr == b.elem_ptr; }
|
||||||
_FORCE_INLINE_ bool operator!=(const ConstIterator &b) const { return elem_ptr != b.elem_ptr; }
|
_FORCE_INLINE_ bool operator!=(const ConstIterator &b) const { return elem_ptr != b.elem_ptr; }
|
||||||
|
|
||||||
ConstIterator(T *p_ptr) { elem_ptr = p_ptr; }
|
ConstIterator(const T *p_ptr) { elem_ptr = p_ptr; }
|
||||||
ConstIterator() {}
|
ConstIterator() {}
|
||||||
ConstIterator(const ConstIterator &p_it) { elem_ptr = p_it.elem_ptr; }
|
ConstIterator(const ConstIterator &p_it) { elem_ptr = p_it.elem_ptr; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue