summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base/refcnt.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base/refcnt.hh b/src/base/refcnt.hh
index d1663ad72..64224ca7f 100644
--- a/src/base/refcnt.hh
+++ b/src/base/refcnt.hh
@@ -37,7 +37,11 @@ class RefCounted
int count;
private:
+ // Don't allow a default copy constructor or copy operator on
+ // these objects because the default operation will copy the
+ // reference count as well and we certainly don't want that.
RefCounted(const RefCounted &);
+ RefCounted &operator=(const RefCounted &);
public:
RefCounted() : count(0) {}