mirror of
https://github.com/godotengine/godot
synced 2024-10-03 02:41:33 +00:00
Fix Vector ConstIterator constructor.
The constructor was expecting a mutable pointer, while the passed pointer was immutable (returns a const pointer), so the compilation was failing when iterating a constant.
This commit is contained in:
parent
d67c5a8e82
commit
3127cc4fd4
|
@ -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; }
|
||||
|
||||
ConstIterator(T *p_ptr) { elem_ptr = p_ptr; }
|
||||
ConstIterator(const T *p_ptr) { elem_ptr = p_ptr; }
|
||||
ConstIterator() {}
|
||||
ConstIterator(const ConstIterator &p_it) { elem_ptr = p_it.elem_ptr; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue