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/WeakPtr.h

    r10768 r10770  
    183183            }
    184184
    185             /// Returns true if the wrapped pointer is nullptr.
    186             inline bool operator!() const
    187             {
    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);
    189189            }
    190190
Note: See TracChangeset for help on using the changeset viewer.