From 7080e0f13f055001a7a0ef42ae704006eb59ccfb Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Sat, 5 Sep 2015 18:19:17 +0100 Subject: [PATCH] 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 --- src/common/Thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.47.3