diff options
author | chatty | 1994-07-06 10:59:43 +0000 |
---|---|---|
committer | chatty | 1994-07-06 10:59:43 +0000 |
commit | 170de22c8d7861ffe3f041ce1c92ff6a288c4dd8 (patch) | |
tree | c9154063702cf7c8099f931a49f85322218b6265 | |
parent | ba67eaab578e52af90f5284fc701db086879b867 (diff) | |
download | ivy-league-170de22c8d7861ffe3f041ce1c92ff6a288c4dd8.zip ivy-league-170de22c8d7861ffe3f041ce1c92ff6a288c4dd8.tar.gz ivy-league-170de22c8d7861ffe3f041ce1c92ff6a288c4dd8.tar.bz2 ivy-league-170de22c8d7861ffe3f041ce1c92ff6a288c4dd8.tar.xz |
New technique for finding dynamic objects
-rw-r--r-- | utils/SmartPointer.h | 6 |
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); |