Chris@16: /* Chris@101: * Copyright Andrey Semashev 2007 - 2015. Chris@16: * Distributed under the Boost Software License, Version 1.0. Chris@16: * (See accompanying file LICENSE_1_0.txt or copy at Chris@16: * http://www.boost.org/LICENSE_1_0.txt) Chris@16: */ Chris@16: /*! Chris@16: * \file explicit_operator_bool.hpp Chris@16: * \author Andrey Semashev Chris@16: * \date 08.03.2009 Chris@16: * Chris@16: * This header is deprecated, use boost/utility/explicit_operator_bool.hpp instead. The header is left for Chris@16: * backward compatibility and will be removed in future versions. Chris@16: */ Chris@16: Chris@16: #ifndef BOOST_LOG_UTILITY_EXPLICIT_OPERATOR_BOOL_HPP_INCLUDED_ Chris@16: #define BOOST_LOG_UTILITY_EXPLICIT_OPERATOR_BOOL_HPP_INCLUDED_ Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: #ifdef BOOST_HAS_PRAGMA_ONCE Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: #if defined(__GNUC__) Chris@16: #pragma message "Boost.Log: This header is deprecated, use boost/utility/explicit_operator_bool.hpp instead." Chris@16: #elif defined(_MSC_VER) Chris@16: #pragma message("Boost.Log: This header is deprecated, use boost/utility/explicit_operator_bool.hpp instead.") Chris@16: #endif Chris@16: Chris@16: /*! Chris@16: * \brief The macro defines an explicit operator of conversion to \c bool Chris@16: * Chris@16: * The macro should be used inside the definition of a class that has to Chris@16: * support the conversion. The class should also implement operator!, Chris@16: * in terms of which the conversion operator will be implemented. Chris@16: */ Chris@16: #define BOOST_LOG_EXPLICIT_OPERATOR_BOOL()\ Chris@16: BOOST_EXPLICIT_OPERATOR_BOOL() Chris@16: Chris@16: #endif // BOOST_LOG_UTILITY_EXPLICIT_OPERATOR_BOOL_HPP_INCLUDED_