From 01629a06460b118fe8dbbfdd5c9a7977c3072613 Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Thu, 23 Jun 2016 19:03:48 +0100 Subject: [PATCH] msg/AsyncMessenger:delete cpy constr and assign op Delete copy constructor and assignment operator, so the checking can be moved from linking to compile time - as it was when the above where only declared, but not defined. Signed-off-by: Michal Jarzabek --- src/msg/async/AsyncMessenger.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msg/async/AsyncMessenger.cc b/src/msg/async/AsyncMessenger.cc index c6dfba4ac5580..02610b5373121 100644 --- a/src/msg/async/AsyncMessenger.cc +++ b/src/msg/async/AsyncMessenger.cc @@ -281,8 +281,6 @@ void Worker::stop() } class WorkerPool { - WorkerPool(const WorkerPool &); - WorkerPool& operator=(const WorkerPool &); CephContext *cct; vector workers; vector coreids; @@ -307,6 +305,8 @@ class WorkerPool { friend class C_barrier; public: explicit WorkerPool(CephContext *c); + WorkerPool(const WorkerPool &) = delete; + WorkerPool& operator=(const WorkerPool &) = delete; virtual ~WorkerPool(); void start(); Worker *get_worker(); -- 2.39.5