From 186368a2e1aeb1eaf53ee3213228d5d4d3ed765c Mon Sep 17 00:00:00 2001 From: sageweil Date: Tue, 12 Dec 2006 22:56:21 +0000 Subject: [PATCH] raw not copyable git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@998 29311d96-e01e-0410-9327-a35deaab8ce9 --- ceph/include/buffer.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ceph/include/buffer.h b/ceph/include/buffer.h index 8df61f7eca744..4e26ed4096b39 100644 --- a/ceph/include/buffer.h +++ b/ceph/include/buffer.h @@ -62,6 +62,10 @@ private: raw(char *c, unsigned l) : data(c), len(l), nref(0), lock(false) {} virtual ~raw() {}; + // no copying. + raw(const raw &other); + const raw& operator=(const raw &other); + virtual raw* clone_empty() = 0; raw *clone() { raw *c = clone_empty(); -- 2.39.5