diff options
author | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2010-02-02 22:01:59 +0000 |
---|---|---|
committer | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2010-02-02 22:01:59 +0000 |
commit | ad9aa3d20a8938e2dc9fbd6a6ddd85d1b417eb21 (patch) | |
tree | d216973847a75d35adfeb04a6934cc1fcda6570c /src/context | |
parent | cea1eb23c8a0c8088bd1db9baad0567c3dbdbfa0 (diff) |
beginings of test for CDO. one fail
Diffstat (limited to 'src/context')
-rw-r--r-- | src/context/context.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/context/context.h b/src/context/context.h index c59955f8d..2a4b2df2f 100644 --- a/src/context/context.h +++ b/src/context/context.h @@ -314,13 +314,6 @@ class ContextObj { */ ContextObj* restoreAndContinue(); - /** - * Disable delete: objects allocated with new(ContextMemorymanager) should - * never be deleted. Objects allocated with new(bool) should be deleted by - * calling deleteSelf(). - */ - static void operator delete(void* pMem) { } - protected: /** * This is a method that must be implemented by all classes inheriting from @@ -398,6 +391,15 @@ public: */ void deleteSelf() { ::operator delete(this); } + /** + * Disable delete: objects allocated with new(ContextMemorymanager) should + * never be deleted. Objects allocated with new(bool) should be deleted by + * calling deleteSelf(). + */ + static void operator delete(void* pMem) { + AlwaysAssert(false, "Not Allowed!"); + } + }; /* class ContextObj */ /** |