From 34b4588481bef94b4a3f615803eddf325ed1b467 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 21 Apr 2017 22:56:44 +0100 Subject: [PATCH] Fix operator* --- src/safe_stack_object.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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