Changeset 9645
- Timestamp:
- Aug 13, 2013, 9:39:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/libraries/core/class/Identifier.h
r9644 r9645 85 85 #include "core/object/Listable.h" 86 86 #include "core/object/Context.h" 87 #include "core/object/Destroyable.h" 88 #include "core/object/WeakPtr.h" 87 89 #include "IdentifierManager.h" 88 90 #include "Super.h" … … 104 106 @note You can't directly create an Identifier, it's just the base-class of ClassIdentifier<T>. 105 107 */ 106 class _CoreExport Identifier 108 class _CoreExport Identifier : public Destroyable 107 109 { 108 110 public: … … 300 302 { 301 303 SuperFunctionDestruction<0, T>::destroy(this); 302 if (classIdentifier_s == this)303 classIdentifier_s = 0;304 304 } 305 305 … … 308 308 309 309 std::string typeidName_; 310 static ClassIdentifier<T>*classIdentifier_s;310 static WeakPtr<ClassIdentifier<T> > classIdentifier_s; 311 311 }; 312 312 313 313 template <class T> 314 ClassIdentifier<T>* ClassIdentifier<T>::classIdentifier_s = 0;314 WeakPtr<ClassIdentifier<T> > ClassIdentifier<T>::classIdentifier_s; 315 315 316 316 /**
Note: See TracChangeset
for help on using the changeset viewer.