diff options
Diffstat (limited to 'src/context/cdset.h')
-rw-r--r-- | src/context/cdset.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/context/cdset.h b/src/context/cdset.h index 7032f76ba..47848c26f 100644 --- a/src/context/cdset.h +++ b/src/context/cdset.h @@ -34,6 +34,23 @@ class CDSet : protected CDMap<V, V, HashFcn> { public: + // ensure these are publicly accessible + static void* operator new(size_t size, bool b) { + return ContextObj::operator new(size, b); + } + + static void operator delete(void* pMem, bool b) { + return ContextObj::operator delete(pMem, b); + } + + void deleteSelf() { + this->ContextObj::deleteSelf(); + } + + static void operator delete(void* pMem) { + AlwaysAssert(false, "It is not allowed to delete a ContextObj this way!"); + } + CDSet(Context* context) : super(context) { } |