diff --git a/lib/base/timer.hpp b/lib/base/timer.hpp index 099882d8b..e523087e6 100644 --- a/lib/base/timer.hpp +++ b/lib/base/timer.hpp @@ -6,6 +6,7 @@ #include "base/i2-base.hpp" #include "base/object.hpp" #include +#include namespace icinga { @@ -19,12 +20,12 @@ class TimerHolder; class Timer final : public Object { public: - DECLARE_PTR_TYPEDEFS(Timer); + typedef std::shared_ptr Ptr; static inline Ptr Create() { - return new Timer(); + return Ptr(new Timer()); } ~Timer() override;