]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/ObjectCacher.h: delete copy constr and assign 9637/head
authorMichal Jarzabek <stiopa@gmail.com>
Fri, 10 Jun 2016 17:34:20 +0000 (18:34 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Fri, 10 Jun 2016 20:47:27 +0000 (21:47 +0100)
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 <stiopa@gmail.com>
src/osdc/ObjectCacher.h

index 5543ca10f0cd6a1762dacd2c5deebef0210e7691..d098a31c651b4b094ae3474981f87223c7e3c974 100644 (file)
@@ -250,8 +250,8 @@ class ObjectCacher {
     map< ceph_tid_t, list<Context*> > waitfor_commit;
     xlist<C_ReadFinish*> 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) :