From: Michal Jarzabek Date: Fri, 10 Jun 2016 17:34:20 +0000 (+0100) Subject: osdc/ObjectCacher.h: delete copy constr and assign X-Git-Tag: v11.0.0~225^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F9637%2Fhead;p=ceph.git 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 --- 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) :