diff --git a/src/libraries/turtle/function.hpp b/src/libraries/turtle/function.hpp index bc2d161..e5d96f9 100644 --- a/src/libraries/turtle/function.hpp +++ b/src/libraries/turtle/function.hpp @@ -193,7 +193,8 @@ namespace mock virtual void reset() { valid_ = true; - boost::shared_ptr< function_impl > guard = shared_from_this(); + boost::shared_ptr< function_impl > guard = + this->shared_from_this(); expectations_.clear(); }