3 // Copied from boost/smart_ptr/detail/operator_bool.hpp
6 #define OPERATOR_BOOL(Class,T,ptr) operator T* Class::*() const { return ptr == NULL ? NULL : &Class::ptr; }
8 // FIXME: Figure out what version doesn't need this hack.
9 #define OPERATOR_BOOL(Class,T,ptr) operator bool() const { return ptr != NULL; }