diff options
Diffstat (limited to 'include/cru/common/ClonablePtr.h')
-rw-r--r-- | include/cru/common/ClonablePtr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/common/ClonablePtr.h b/include/cru/common/ClonablePtr.h index 39b5b454..a2a88758 100644 --- a/include/cru/common/ClonablePtr.h +++ b/include/cru/common/ClonablePtr.h @@ -88,7 +88,7 @@ class ClonablePtr { public: pointer get() const noexcept { return ptr_.get(); } - operator bool() const noexcept { return ptr_; } + operator bool() const noexcept { return ptr_ != nullptr; } element_type& operator*() const noexcept { return *ptr_; } pointer operator->() const noexcept { return ptr_.get(); } |