File indexing completed on 2025-01-18 09:39:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef BOOST_LOG_DETAIL_NATIVE_TYPEOF_HPP_INCLUDED_
0017 #define BOOST_LOG_DETAIL_NATIVE_TYPEOF_HPP_INCLUDED_
0018
0019 #include <boost/log/detail/config.hpp>
0020
0021 #ifdef BOOST_HAS_PRAGMA_ONCE
0022 #pragma once
0023 #endif
0024
0025 #if !defined(BOOST_NO_CXX11_DECLTYPE)
0026
0027 namespace boost {
0028
0029 BOOST_LOG_OPEN_NAMESPACE
0030
0031 namespace aux {
0032
0033 template< typename T >
0034 T get_root_type(T const&);
0035
0036 }
0037
0038 BOOST_LOG_CLOSE_NAMESPACE
0039
0040 }
0041
0042 #define BOOST_LOG_TYPEOF(x) decltype(::boost::log::aux::get_root_type(x))
0043
0044 #elif defined(__COMO__) && defined(__GNUG__)
0045
0046 #define BOOST_LOG_TYPEOF(x) typeof(x)
0047
0048 #elif defined(__GNUC__) || defined(__MWERKS__)
0049
0050 #define BOOST_LOG_TYPEOF(x) __typeof__(x)
0051
0052 #endif
0053
0054
0055 #if !defined(BOOST_NO_CXX11_AUTO_DECLARATIONS)
0056 #define BOOST_LOG_AUTO(var, expr) auto var = (expr)
0057 #endif
0058
0059 #if !defined(BOOST_LOG_AUTO) && defined(BOOST_LOG_TYPEOF)
0060 #define BOOST_LOG_AUTO(var, expr) BOOST_LOG_TYPEOF((expr)) var = (expr)
0061 #endif
0062
0063 #endif