Chris@16
|
1 /*
|
Chris@101
|
2 * Copyright Andrey Semashev 2007 - 2015.
|
Chris@16
|
3 * Distributed under the Boost Software License, Version 1.0.
|
Chris@16
|
4 * (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
5 * http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
6 */
|
Chris@16
|
7 /*!
|
Chris@16
|
8 * \file explicit_operator_bool.hpp
|
Chris@16
|
9 * \author Andrey Semashev
|
Chris@16
|
10 * \date 08.03.2009
|
Chris@16
|
11 *
|
Chris@16
|
12 * This header is deprecated, use boost/utility/explicit_operator_bool.hpp instead. The header is left for
|
Chris@16
|
13 * backward compatibility and will be removed in future versions.
|
Chris@16
|
14 */
|
Chris@16
|
15
|
Chris@16
|
16 #ifndef BOOST_LOG_UTILITY_EXPLICIT_OPERATOR_BOOL_HPP_INCLUDED_
|
Chris@16
|
17 #define BOOST_LOG_UTILITY_EXPLICIT_OPERATOR_BOOL_HPP_INCLUDED_
|
Chris@16
|
18
|
Chris@16
|
19 #include <boost/utility/explicit_operator_bool.hpp>
|
Chris@16
|
20 #include <boost/log/detail/config.hpp>
|
Chris@16
|
21
|
Chris@16
|
22 #ifdef BOOST_HAS_PRAGMA_ONCE
|
Chris@16
|
23 #pragma once
|
Chris@16
|
24 #endif
|
Chris@16
|
25
|
Chris@16
|
26 #if defined(__GNUC__)
|
Chris@16
|
27 #pragma message "Boost.Log: This header is deprecated, use boost/utility/explicit_operator_bool.hpp instead."
|
Chris@16
|
28 #elif defined(_MSC_VER)
|
Chris@16
|
29 #pragma message("Boost.Log: This header is deprecated, use boost/utility/explicit_operator_bool.hpp instead.")
|
Chris@16
|
30 #endif
|
Chris@16
|
31
|
Chris@16
|
32 /*!
|
Chris@16
|
33 * \brief The macro defines an explicit operator of conversion to \c bool
|
Chris@16
|
34 *
|
Chris@16
|
35 * The macro should be used inside the definition of a class that has to
|
Chris@16
|
36 * support the conversion. The class should also implement <tt>operator!</tt>,
|
Chris@16
|
37 * in terms of which the conversion operator will be implemented.
|
Chris@16
|
38 */
|
Chris@16
|
39 #define BOOST_LOG_EXPLICIT_OPERATOR_BOOL()\
|
Chris@16
|
40 BOOST_EXPLICIT_OPERATOR_BOOL()
|
Chris@16
|
41
|
Chris@16
|
42 #endif // BOOST_LOG_UTILITY_EXPLICIT_OPERATOR_BOOL_HPP_INCLUDED_
|