diff --git a/qse/include/qse/cmn/Array.hpp b/qse/include/qse/cmn/Array.hpp index 8f56232c..890506cd 100644 --- a/qse/include/qse/cmn/Array.hpp +++ b/qse/include/qse/cmn/Array.hpp @@ -244,7 +244,7 @@ public: return this->buffer[index]; } - T& getValueAtgetValueAt (qse_size_t index) + T& getValueAt (qse_size_t index) { QSE_ASSERT (index < this->count); return this->buffer[index]; diff --git a/qse/include/qse/cmn/BinaryHeap.hpp b/qse/include/qse/cmn/BinaryHeap.hpp index 84091698..4f04ae1e 100644 --- a/qse/include/qse/cmn/BinaryHeap.hpp +++ b/qse/include/qse/cmn/BinaryHeap.hpp @@ -129,9 +129,15 @@ public: using ParentType::isEmpty; using ParentType::getSize; using ParentType::getCapacity; + using ParentType::getIndex; using ParentType::clear; using ParentType::compact; + const T& operator[] (qse_size_t index) const + { + return ParentType::getValueAt (index); + } + const T& getValueAt (qse_size_t index) const { return ParentType::getValueAt (index);