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/cdhashset.h | |
parent | bb35ed4f871e4cb5d33c1030fc5547bb92ec334b (diff) |
Disallow context-dependent copy/assignment.
Diffstat (limited to 'src/context/cdhashset.h')
-rw-r--r-- | src/context/cdhashset.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/context/cdhashset.h b/src/context/cdhashset.h index 881c3f629..18a39754e 100644 --- a/src/context/cdhashset.h +++ b/src/context/cdhashset.h @@ -30,6 +30,10 @@ template <class V, class HashFcn> class CDHashSet : protected CDInsertHashMap<V, bool, HashFcn> { typedef CDInsertHashMap<V, bool, HashFcn> super; + // no copy or assignment + CDHashSet(const CDHashSet&) CVC4_UNDEFINED; + CDHashSet& operator=(const CDHashSet&) CVC4_UNDEFINED; + public: // ensure these are publicly accessible @@ -148,7 +152,7 @@ public: return super::insertAtContextLevelZero(v, true); } -};/* class CDSet */ +};/* class CDHashSet */ }/* CVC4::context namespace */ }/* CVC4 namespace */ |