diff --git a/src/tarray.h b/src/tarray.h index eecb60576..343cf28dc 100644 --- a/src/tarray.h +++ b/src/tarray.h @@ -98,8 +98,7 @@ public: 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; } - const T &operator*() const { return *m_ptr; } + T &operator*() const { return *m_ptr; } T* operator->() { return m_ptr; } protected: