Go to the documentation of this file.
36 #ifndef Alembic_Util_OperatorBool_h
37 #define Alembic_Util_OperatorBool_h
42 #define ALEMBIC_OPERATOR_BOOL( PASS_COND ) \
43 void __unspecified_bool_type_fcn() const {} \
44 typedef void (this_type::*unspecified_bool_type)() const; \
45 operator unspecified_bool_type() const \
47 return ( PASS_COND ) ? &this_type::__unspecified_bool_type_fcn : 0; \
49 bool operator! () const \
51 return !( PASS_COND ); \
56 #define ALEMBIC_OVERRIDE_OPERATOR_BOOL( PASS_COND ) \
57 operator unspecified_bool_type() const \
59 return ( PASS_COND ) ? \
60 &operator_bool_base_type::__unspecified_bool_type_fcn : 0; \
62 bool operator! () const \
64 return !( PASS_COND ); \