Go to the documentation of this file. 34 #ifndef BLOCXX_SAFE_BOOL_HPP_INCLUDE_GUARD_ 35 #define BLOCXX_SAFE_BOOL_HPP_INCLUDE_GUARD_ 42 #include "blocxx/BLOCXX_config.h" 48 #define BLOCXX_SAFE_BOOL_IMPL(classname, type, variable, test) \ 49 operator bool () const \ 53 bool operator !() const \ 57 #else // functional compilers 58 #define BLOCXX_SAFE_BOOL_IMPL(classname, type, variable, test) \ 59 typedef type classname::*safe_bool; \ 60 operator safe_bool () const \ 62 return (test) ? &variable : 0; \ 64 bool operator !() const \