diff --git a/include/XPath/impl/xpath_object.hpp b/include/XPath/impl/xpath_object.hpp index e0ab41e7..7727a0b4 100644 --- a/include/XPath/impl/xpath_object.hpp +++ b/include/XPath/impl/xpath_object.hpp @@ -342,7 +342,7 @@ public: ValueType type() const { return ptr_->type(); } - operator bool() const { return ptr_.get(); } + operator bool() const { return ptr_.get() != 0; } bool operator==(int dummy) const { return (dummy == 0) && (ptr_.get() == 0); } bool operator!=(int dummy) const { return !(operator==(dummy)); }