Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
explicit_operator_bool.hpp File Reference
#include <boost/utility/explicit_operator_bool.hpp>
#include <boost/log/detail/config.hpp>
Include dependency graph for explicit_operator_bool.hpp:

Macros

#define BOOST_LOG_EXPLICIT_OPERATOR_BOOL()   BOOST_EXPLICIT_OPERATOR_BOOL()
 The macro defines an explicit operator of conversion to bool. More...
 

Macro Definition Documentation

#define BOOST_LOG_EXPLICIT_OPERATOR_BOOL ( )    BOOST_EXPLICIT_OPERATOR_BOOL()

The macro defines an explicit operator of conversion to bool.

The macro should be used inside the definition of a class that has to support the conversion. The class should also implement operator!, in terms of which the conversion operator will be implemented.