aboutsummaryrefslogtreecommitdiffstats
path: root/common/intrusive_ptr.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-20 22:04:19 -0800
committerChris Robinson <[email protected]>2022-02-20 22:04:19 -0800
commit6c643e59e94ee14d6c8509d46a39ed6a53f72a76 (patch)
tree55d15ed688cf69ac0243911dcc01d938ad9560f4 /common/intrusive_ptr.h
parent023ad6320be73d1cee3facad1722e94d7258f2bb (diff)
Make a couple more operator bools explicit
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; }