diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2014-06-16 16:43:56 -0400 |
---|---|---|
committer | lianah <lianahady@gmail.com> | 2014-06-19 18:24:38 -0400 |
commit | 00ae9a7eba6648f957011cc250ba8707cce029c3 (patch) | |
tree | b127eb494d7cf70d2769b8f94781f8f464805561 /src/context/cdhashmap.h | |
parent | bb35ed4f871e4cb5d33c1030fc5547bb92ec334b (diff) |
Disallow context-dependent copy/assignment.
Diffstat (limited to 'src/context/cdhashmap.h')
-rw-r--r-- | src/context/cdhashmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/context/cdhashmap.h b/src/context/cdhashmap.h index 3a7f56e17..7fb36bb3a 100644 --- a/src/context/cdhashmap.h +++ b/src/context/cdhashmap.h @@ -174,6 +174,7 @@ class CDOhash_map : public ContextObj { d_prev(NULL), d_next(NULL) { } + CDOhash_map& operator=(const CDOhash_map&) CVC4_UNDEFINED; public: @@ -305,6 +306,10 @@ class CDHashMap : public ContextObj { d_trash.clear(); } + // no copy or assignment + CDHashMap(const CDHashMap&) CVC4_UNDEFINED; + CDHashMap& operator=(const CDHashMap&) CVC4_UNDEFINED; + public: CDHashMap(Context* context) : |