From 170de22c8d7861ffe3f041ce1c92ff6a288c4dd8 Mon Sep 17 00:00:00 2001 From: chatty Date: Wed, 6 Jul 1994 10:59:43 +0000 Subject: New technique for finding dynamic objects --- utils/SmartPointer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'utils/SmartPointer.h') 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); -- cgit v1.1