summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/SmartPointer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/SmartPointer.h b/utils/SmartPointer.h
index ec61e72..37c78ee 100644
--- a/utils/SmartPointer.h
+++ b/utils/SmartPointer.h
@@ -21,6 +21,7 @@
#endif
#include "cplus_bugs.h"
+class CcuList;
class CcuSmartData {
public:
@@ -28,12 +29,15 @@ public:
private:
static check_type check;
-
int State;
inline int IsDynamic () const { return !(State & 1); }
protected:
+#ifdef OLD
static int NextCreatedIsDynamic;
+#else
+static CcuList* LastDynamics;
+#endif
public:
void* operator new (unsigned long);