aboutsummaryrefslogtreecommitdiffstats
path: root/common/intrusive_ptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/intrusive_ptr.h')
-rw-r--r--common/intrusive_ptr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/intrusive_ptr.h b/common/intrusive_ptr.h
index cc82dea5..e1fc1f7b 100644
--- a/common/intrusive_ptr.h
+++ b/common/intrusive_ptr.h
@@ -74,7 +74,7 @@ public:
return *this;
}
- operator bool() const noexcept { return mPtr != nullptr; }
+ explicit operator bool() const noexcept { return mPtr != nullptr; }
T& operator*() const noexcept { return *mPtr; }
T* operator->() const noexcept { return mPtr; }