diff --git a/src/core/ptr.h b/src/core/ptr.h index 4861ceb4b..c61db5506 100644 --- a/src/core/ptr.h +++ b/src/core/ptr.h @@ -106,7 +106,7 @@ public: T *operator -> () const; T *operator -> (); const T &operator * () const; - const T &operator * (); + T &operator * (); // allow if (!sp) bool operator! (); // allow if (sp) @@ -472,7 +472,7 @@ Ptr::operator * () const } template -const T & +T & Ptr::operator * () { return *m_ptr;