From: Michal Jarzabek Date: Sat, 5 Sep 2015 17:19:17 +0000 (+0100) Subject: Thread.h: disable copy constr and assignment op X-Git-Tag: v10.0.0~27^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7080e0f13f055001a7a0ef42ae704006eb59ccfb;p=ceph.git Thread.h: disable copy constr and assignment op 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 --- diff --git a/src/common/Thread.h b/src/common/Thread.h index e284bdafaaba..98b76fde3b27 100644 --- a/src/common/Thread.h +++ b/src/common/Thread.h @@ -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();