Changeset 10770 for code/branches/cpp11_v2/src
- Timestamp:
- Nov 7, 2015, 2:42:14 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/libraries
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/ClassTreeMask.h
r10769 r10770 152 152 ClassTreeMaskNode* operator*() const; 153 153 ClassTreeMaskNode* operator->() const; 154 operator bool() const;154 explicit operator bool() const; 155 155 bool operator==(ClassTreeMaskNode* compare) const; 156 156 bool operator!=(ClassTreeMaskNode* compare) const; … … 289 289 inline bool operator!=(BaseObject* pointer) const { return (this->objectIterator_ && (*this->objectIterator_) != pointer) || (!this->objectIterator_ && pointer != nullptr); } 290 290 /// Returns true if the ClassTreeMaskObjectIterator hasn't already reached the end. 291 inline operator bool() const { return (this->objectIterator_); }291 inline explicit operator bool() const { return this->objectIterator_.operator bool(); } 292 292 /// Returns the object the ClassTreeMaskObjectIterator currently points at. 293 293 inline BaseObject* operator*() const { return (*this->objectIterator_); } -
code/branches/cpp11_v2/src/libraries/core/object/IteratorBase.h
r10765 r10770 149 149 @return True if the Iterator points to an existing object. 150 150 */ 151 inline operator bool() const151 inline explicit operator bool() const 152 152 { 153 153 return (this->element_ != nullptr); -
code/branches/cpp11_v2/src/libraries/core/object/StrongPtr.h
r10768 r10770 248 248 } 249 249 250 /// Returns true if the wrapped pointer isnullptr.251 inline bool operator!() const252 { 253 return (this->pointer_ == nullptr);250 /// Returns true if the pointer is not nullptr. 251 inline explicit operator bool() const 252 { 253 return (this->pointer_ != nullptr); 254 254 } 255 255 -
code/branches/cpp11_v2/src/libraries/core/object/WeakPtr.h
r10768 r10770 183 183 } 184 184 185 /// Returns true if the wrapped pointer isnullptr.186 inline bool operator!() const187 { 188 return (this->pointer_ == nullptr);185 /// Returns true if the pointer is not nullptr. 186 inline explicit operator bool() const 187 { 188 return (this->pointer_ != nullptr); 189 189 } 190 190 -
code/branches/cpp11_v2/src/libraries/util/SharedPtr.h
r10769 r10770 311 311 312 312 /// Returns true if the pointer is not nullptr. 313 inline operator bool() const313 inline explicit operator bool() const 314 314 { 315 315 return (this->pointer_ != nullptr);
Note: See TracChangeset
for help on using the changeset viewer.