- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/libraries/util/DestructionHelper.h
r8423 r11054 36 36 /** Deletes an object and resets the pointer 37 37 @param object 38 Pointer to an object. Handing over NULLis safe.38 Pointer to an object. Handing over nullptr is safe. 39 39 */ 40 40 template <class T> … … 42 42 { 43 43 delete *object; 44 *object = NULL;44 *object = nullptr; 45 45 } 46 46 … … 87 87 88 88 private: 89 DestructionHelper(const DestructionHelper&); //!< Don't use (undefined) 89 // non-copyable: 90 DestructionHelper(const DestructionHelper&) = delete; 91 DestructionHelper& operator=(const DestructionHelper&) = delete; 90 92 91 93 T* object_;
Note: See TracChangeset
for help on using the changeset viewer.