summaryrefslogtreecommitdiff
path: root/src/context/context.h
diff options
context:
space:
mode:
authorDejan Jovanović <dejan.jovanovic@gmail.com>2010-02-02 22:01:59 +0000
committerDejan Jovanović <dejan.jovanovic@gmail.com>2010-02-02 22:01:59 +0000
commitad9aa3d20a8938e2dc9fbd6a6ddd85d1b417eb21 (patch)
treed216973847a75d35adfeb04a6934cc1fcda6570c /src/context/context.h
parentcea1eb23c8a0c8088bd1db9baad0567c3dbdbfa0 (diff)
beginings of test for CDO. one fail
Diffstat (limited to 'src/context/context.h')
-rw-r--r--src/context/context.h16
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 */
/**
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback