Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/PrettyMemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ namespace prtm
ConstPointer Data() const { return Get(); }

/** @brief Check whether this ShadowPtr points to a live object. */
operator bool() const { return nullptr != Get(); }
explicit operator bool() const { return nullptr != Get(); }

/** @brief Check whether the referenced object has expired. */
bool Expired() const { return nullptr == Get(); }
Expand Down Expand Up @@ -604,7 +604,7 @@ namespace prtm
ConstPointer operator->() const { return Get(); }

/** @brief Check whether this OwnerPtr currently owns an object. */
operator bool() const { return nullptr != Get(); }
explicit operator bool() const { return nullptr != Get(); }

/** @brief Check whether this OwnerPtr is null. */
bool IsNull() const { return nullptr == Get(); }
Expand Down
Loading