Changeset 7268 for code/trunk/src/libraries/core/SmartPtr.h
- Timestamp:
- Aug 30, 2010, 7:34:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/SmartPtr.h
r6417 r7268 36 36 #include <cassert> 37 37 38 #include "Identifier.h" 38 39 #include "OrxonoxClass.h" 39 40 #include "WeakPtr.h" … … 85 86 } 86 87 87 inline constSmartPtr& operator=(int)88 inline SmartPtr& operator=(int) 88 89 { 89 90 SmartPtr(0).swap(*this); … … 91 92 } 92 93 93 inline constSmartPtr& operator=(T* pointer)94 inline SmartPtr& operator=(T* pointer) 94 95 { 95 96 SmartPtr(pointer).swap(*this); … … 97 98 } 98 99 99 inline constSmartPtr& operator=(const SmartPtr& other)100 inline SmartPtr& operator=(const SmartPtr& other) 100 101 { 101 102 SmartPtr(other).swap(*this); … … 104 105 105 106 template <class O> 106 inline constSmartPtr& operator=(const SmartPtr<O>& other)107 inline SmartPtr& operator=(const SmartPtr<O>& other) 107 108 { 108 109 SmartPtr(other).swap(*this); … … 111 112 112 113 template <class O> 113 inline constSmartPtr& operator=(const WeakPtr<O>& other)114 inline SmartPtr& operator=(const WeakPtr<O>& other) 114 115 { 115 116 SmartPtr(other).swap(*this); … … 194 195 SmartPtr<T> dynamic_pointer_cast(const SmartPtr<U>& p) 195 196 { 196 return dynamic_cast<T*>(p.get());197 return orxonox_cast<T*>(p.get()); 197 198 } 198 199 }
Note: See TracChangeset
for help on using the changeset viewer.