diff --git a/src/common/Timer.h b/src/common/Timer.h index 1c14c574ba36c..6ac916d9e2ef4 100644 --- a/src/common/Timer.h +++ b/src/common/Timer.h @@ -27,10 +27,6 @@ class SafeTimerThread; class SafeTimer { - // This class isn't supposed to be copied - SafeTimer(const SafeTimer &rhs); - SafeTimer& operator=(const SafeTimer &rhs); - CephContext *cct; Mutex& lock; Cond cond; @@ -49,6 +45,10 @@ class SafeTimer void dump(const char *caller = 0) const; public: + // This class isn't supposed to be copied + SafeTimer(const SafeTimer&) = delete; + SafeTimer& operator=(const SafeTimer&) = delete; + /* Safe callbacks determines whether callbacks are called with the lock * held. *