27 #ifndef COMMON_SAFE_BOOL_H 28 #define COMMON_SAFE_BOOL_H 55 template <
typename DerivedT,
typename BaseT = impl::no_base<DerivedT> >
59 typedef typename impl_t::type bool_type;
62 operator bool_type()
const {
63 return static_cast<const DerivedT *
>(
this)->operator_bool() ?
64 &impl_t::stub :
nullptr;
67 operator bool_type() {
68 return static_cast<DerivedT *
>(
this)->operator_bool() ?
Definition: safe-bool.h:36
Definition: safe-bool.h:33
Definition: algorithm.h:29
Definition: safe-bool.h:56