17 #ifndef HH_SENF_Utils_safe_bool_ 18 #define HH_SENF_Utils_safe_bool_ 1 21 #include <senf/autoconf.hh> 28 #ifdef SENF_CXX11_ENABLED 31 class comparable_safe_bool
34 explicit operator bool()
const;
38 class safe_bool :
public comparable_safe_bool<T> {};
121 template <
typename T>
124 template <
typename T,
typename U>
127 template <
typename T,
typename U>
void operator!=(const safe_bool< T > &lhs, const safe_bool< U > &rhs)
void(safe_bool_base::* bool_type)() const
safe_bool_base & operator=(const safe_bool_base &)
Mixin class for safe boolean conversion support.
internal safe_bool base class
void this_type_does_not_support_comparisons() const
Mixin class for safe bool conversion support (comparable classes)
void operator==(const safe_bool< T > &lhs, const safe_bool< U > &rhs)