diff --git a/src/safe_stack_object.hpp b/src/safe_stack_object.hpp index 7e6c8cd..0806d2e 100644 --- a/src/safe_stack_object.hpp +++ b/src/safe_stack_object.hpp @@ -38,7 +38,7 @@ namespace curry { SafeStackObject& operator= (const SafeStackObject& parOther) = delete; operator Kakoune::SafePtr&(); - safe_ptr& operator*(); + T& operator*(); safe_ptr& operator->(); private: @@ -85,8 +85,8 @@ namespace curry { } template - auto SafeStackObject::operator*() -> safe_ptr& { - return m_obj_ptr; + T& SafeStackObject::operator*() { + return *m_obj_ptr; } template