]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/AsyncMessenger:delete cpy constr and assign op
authorMichal Jarzabek <stiopa@gmail.com>
Thu, 23 Jun 2016 18:03:48 +0000 (19:03 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Thu, 23 Jun 2016 18:03:48 +0000 (19:03 +0100)
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 <stiopa@gmail.com>
src/msg/async/AsyncMessenger.cc

index c6dfba4ac55802583e8c9f991781422fbd7acbf2..02610b53731211c07f1e5273decfad25ec222f5d 100644 (file)
@@ -281,8 +281,6 @@ void Worker::stop()
 }
 
 class WorkerPool {
-  WorkerPool(const WorkerPool &);
-  WorkerPool& operator=(const WorkerPool &);
   CephContext *cct;
   vector<Worker*> workers;
   vector<int> 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();