Go to the documentation of this file. 1 #ifndef SILICIUM_EXPLICIT_OPERATOR_BOOL_HPP
2 #define SILICIUM_EXPLICIT_OPERATOR_BOOL_HPP
4 #include <boost/version.hpp>
5 #if BOOST_VERSION >= 105500
6 # include <boost/utility/explicit_operator_bool.hpp>
9 #ifdef BOOST_EXPLICIT_OPERATOR_BOOL_NOEXCEPT
11 # define SILICIUM_EXPLICIT_OPERATOR_BOOL() BOOST_EXPLICIT_OPERATOR_BOOL_NOEXCEPT()
13 #elif defined(BOOST_EXPLICIT_OPERATOR_BOOL)
14 # define SILICIUM_EXPLICIT_OPERATOR_BOOL() BOOST_EXPLICIT_OPERATOR_BOOL()
17 # define SILICIUM_EXPLICIT_OPERATOR_BOOL() \
18 operator bool() const BOOST_NOEXCEPT \