Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 7, 2015, 2:42:14 PM (8 years ago)
Author:
landauf
Message:

made conversion to bool operators explicit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/object/StrongPtr.h

    r10768 r10770  
    248248            }
    249249
    250             /// Returns true if the wrapped pointer is nullptr.
    251             inline bool operator!() const
    252             {
    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);
    254254            }
    255255
Note: See TracChangeset for help on using the changeset viewer.