From b93e8b77d5f697353a3a5469b6d40d5d0791a59b Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Fri, 10 Jun 2016 18:34:20 +0100 Subject: [PATCH] osdc/ObjectCacher.h: delete copy constr and assign 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/osdc/ObjectCacher.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osdc/ObjectCacher.h b/src/osdc/ObjectCacher.h index 5543ca10f0c..d098a31c651 100644 --- a/src/osdc/ObjectCacher.h +++ b/src/osdc/ObjectCacher.h @@ -250,8 +250,8 @@ class ObjectCacher { map< ceph_tid_t, list > waitfor_commit; xlist reads; - Object(const Object& other); - const Object& operator=(const Object& other); + Object(const Object&) = delete; + Object& operator=(const Object&) = delete; Object(ObjectCacher *_oc, sobject_t o, uint64_t ono, ObjectSet *os, object_locator_t& l, uint64_t ts, uint64_t tq) : -- 2.47.3