Changeset 565 for library/bdm/shared_ptr.h
- Timestamp:
- 08/19/09 16:54:24 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/shared_ptr.h
r555 r565 18 18 #include <stdexcept> 19 19 #include <string> 20 #include " itpp_ext.h"20 #include "bdmerror.h" 21 21 22 22 namespace bdm { … … 123 123 */ 124 124 T *operator->() { 125 it_assert_debug ( payload, "dereferencing NULL" );125 bdm_assert_debug ( payload, "dereferencing NULL" ); 126 126 return payload; 127 127 } … … 131 131 //! isn't NULL. 132 132 T &operator*() { 133 it_assert_debug ( payload, "dereferencing NULL" );133 bdm_assert_debug ( payload, "dereferencing NULL" ); 134 134 return *payload; 135 135 } … … 147 147 //! pointer isn't NULL. 148 148 const T *operator->() const { 149 it_assert_debug ( payload, "dereferencing NULL" );149 bdm_assert_debug ( payload, "dereferencing NULL" ); 150 150 return payload; 151 151 } … … 155 155 //! isn't NULL. 156 156 const T &operator*() const { 157 it_assert_debug ( payload, "dereferencing NULL" );157 bdm_assert_debug ( payload, "dereferencing NULL" ); 158 158 return *payload; 159 159 } … … 254 254 */ 255 255 object_ptr ( const shared_ptr<T> &b ) : shared_ptr<T> ( b ) { 256 it_assert_debug ( this->get(), "object_ptr cannot be empty" );256 bdm_assert_debug ( this->get(), "object_ptr cannot be empty" ); 257 257 } 258 258 … … 262 262 */ 263 263 object_ptr ( T *p ) : shared_ptr<T> ( p ) { 264 it_assert_debug ( p, "object_ptr cannot be empty" );264 bdm_assert_debug ( p, "object_ptr cannot be empty" ); 265 265 } 266 266