Extracted BOOST_EXPLICIT_OPERATOR_BOOL macro from Boost.Log.