]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Thread.h: disable copy constr and assignment op 5133/head
authorMichal Jarzabek <stiopa@gmail.com>
Sat, 5 Sep 2015 17:19:17 +0000 (18:19 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Sat, 5 Sep 2015 17:19:17 +0000 (18:19 +0100)
Disable copy constructor and assignment operator.
They are currently not defined, so any attempt to use them will
result in linker error.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/common/Thread.h

index e284bdafaaba86d5f5976438e44e1a94bcccb1b2..98b76fde3b27ec22518b261c271d165b05681928 100644 (file)
@@ -29,8 +29,8 @@ class Thread {
   void *entry_wrapper();
 
  public:
-  explicit Thread(const Thread& other);
-  const Thread& operator=(const Thread& other);
+  Thread(const Thread&) = delete;
+  Thread& operator=(const Thread&) = delete;
 
   Thread();
   virtual ~Thread();