diff --git a/include/boo/BooObject.hpp b/include/boo/BooObject.hpp index a819836..611b47a 100644 --- a/include/boo/BooObject.hpp +++ b/include/boo/BooObject.hpp @@ -69,7 +69,7 @@ public: T* cast() const noexcept { return static_cast(m_obj); } - operator bool() const noexcept { return m_obj != nullptr; } + explicit operator bool() const noexcept { return m_obj != nullptr; } void reset() noexcept { if (m_obj) m_obj->decrement();