summaryrefslogtreecommitdiff
path: root/node/SharedPtr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/SharedPtr.hpp')
-rw-r--r--node/SharedPtr.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/SharedPtr.hpp b/node/SharedPtr.hpp
index 198804a4..834d0a2e 100644
--- a/node/SharedPtr.hpp
+++ b/node/SharedPtr.hpp
@@ -99,7 +99,7 @@ public:
with._ptr = tmp;
}
- inline operator bool() const throw() { return (_ptr); }
+ inline operator bool() const throw() { return (_ptr != (T *)0); }
inline T &operator*() const throw() { return *_ptr; }
inline T *operator->() const throw() { return _ptr; }