Changeset 756 for library/bdm/shared_ptr.h
- Timestamp:
- 12/28/09 17:02:37 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/shared_ptr.h
r737 r756 123 123 */ 124 124 T *operator->() { 125 if ( !payload ) { 126 abort(); 127 };// "dereferencing NULL" ); 125 bdm_assert_debug ( payload, "dereferencing NULL shared pointer" ); 128 126 return payload; 129 127 } … … 133 131 //! isn't NULL. 134 132 T &operator*() { 135 bdm_assert_debug ( payload, "dereferencing NULL " );133 bdm_assert_debug ( payload, "dereferencing NULL shared pointer" ); 136 134 return *payload; 137 135 } … … 149 147 //! pointer isn't NULL. 150 148 const T *operator->() const { 151 bdm_assert_debug ( payload, "dereferencing NULL " );149 bdm_assert_debug ( payload, "dereferencing NULL shared pointer" ); 152 150 return payload; 153 151 } … … 157 155 //! isn't NULL. 158 156 const T &operator*() const { 159 bdm_assert_debug ( payload, "dereferencing NULL " );157 bdm_assert_debug ( payload, "dereferencing NULL shared pointer" ); 160 158 return *payload; 161 159 }