Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:10:15

0001 
0002 //  (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
0003 //  Use, modification and distribution are subject to the Boost Software License,
0004 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0005 //  http://www.boost.org/LICENSE_1_0.txt).
0006 //
0007 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
0008 
0009 #ifndef BOOST_TT_CONFIG_HPP_INCLUDED
0010 #define BOOST_TT_CONFIG_HPP_INCLUDED
0011 
0012 #ifndef BOOST_CONFIG_HPP
0013 #include <boost/config.hpp>
0014 #endif
0015 #include <boost/version.hpp>
0016 #include <boost/config/workaround.hpp>
0017 
0018 //
0019 // whenever we have a conversion function with ellipses
0020 // it needs to be declared __cdecl to suppress compiler
0021 // warnings from MS and Borland compilers (this *must*
0022 // appear before we include is_same.hpp below):
0023 #if defined(BOOST_MSVC) || (defined(BOOST_BORLANDC) && !defined(BOOST_DISABLE_WIN32))
0024 #   define BOOST_TT_DECL __cdecl
0025 #else
0026 #   define BOOST_TT_DECL /**/
0027 #endif
0028 
0029 # if (BOOST_WORKAROUND(__MWERKS__, < 0x3000)                         \
0030     || BOOST_WORKAROUND(__IBMCPP__, < 600 )                         \
0031     || BOOST_WORKAROUND(BOOST_BORLANDC, < 0x5A0)                      \
0032     || defined(__ghs)                                               \
0033     || BOOST_WORKAROUND(__HP_aCC, < 60700)           \
0034     || BOOST_WORKAROUND(MPW_CPLUS, BOOST_TESTED_AT(0x890))          \
0035     || BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x580)))       \
0036     && defined(BOOST_NO_IS_ABSTRACT)
0037 
0038 #   define BOOST_TT_NO_CONFORMING_IS_CLASS_IMPLEMENTATION 1
0039 
0040 #endif
0041 
0042 #ifndef BOOST_TT_NO_CONFORMING_IS_CLASS_IMPLEMENTATION
0043 # define BOOST_TT_HAS_CONFORMING_IS_CLASS_IMPLEMENTATION 1
0044 #endif
0045 
0046 //
0047 // define BOOST_TT_TEST_MS_FUNC_SIGS
0048 // when we want to test __stdcall etc function types with is_function etc
0049 // (Note, does not work with Borland, even though it does support __stdcall etc):
0050 //
0051 #if defined(_MSC_EXTENSIONS) && !defined(BOOST_BORLANDC)
0052 #  define BOOST_TT_TEST_MS_FUNC_SIGS
0053 #endif
0054 
0055 //
0056 // define BOOST_TT_NO_CV_FUNC_TEST
0057 // if tests for cv-qualified member functions don't 
0058 // work in is_member_function_pointer
0059 //
0060 #if BOOST_WORKAROUND(__MWERKS__, < 0x3000) || BOOST_WORKAROUND(__IBMCPP__, <= 600)
0061 #  define BOOST_TT_NO_CV_FUNC_TEST
0062 #endif
0063 
0064 //
0065 // Macros that have been deprecated, defined here for backwards compatibility:
0066 //
0067 #define BOOST_BROKEN_COMPILER_TYPE_TRAITS_SPECIALIZATION(x)
0068 #define BOOST_TT_BROKEN_COMPILER_SPEC(x)
0069 
0070 //
0071 // Can we implement "accurate" binary operator detection:
0072 //
0073 #if !defined(BOOST_NO_SFINAE_EXPR) && !defined(BOOST_NO_CXX11_DECLTYPE) && !BOOST_WORKAROUND(BOOST_MSVC, < 1900) && !BOOST_WORKAROUND(BOOST_GCC, < 40900)
0074 #  define BOOST_TT_HAS_ACCURATE_BINARY_OPERATOR_DETECTION
0075 #endif
0076 
0077 #if defined(__clang__) && (__clang_major__ == 3) && (__clang_minor__ < 2) && defined(BOOST_TT_HAS_ACCURATE_BINARY_OPERATOR_DETECTION)
0078 #undef BOOST_TT_HAS_ACCURATE_BINARY_OPERATOR_DETECTION
0079 #endif
0080 
0081 //
0082 // Can we implement accurate is_function/is_member_function_pointer (post C++03)?
0083 //
0084 #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !BOOST_WORKAROUND(BOOST_GCC, < 40805)\
0085       && !BOOST_WORKAROUND(BOOST_MSVC, < 1900) && !BOOST_WORKAROUND(__clang_major__, <= 4)
0086 #  define BOOST_TT_HAS_ACCURATE_IS_FUNCTION
0087 #endif
0088 
0089 #if defined(_MSVC_LANG) && (_MSVC_LANG >= 201703) 
0090 #  define BOOST_TT_NO_DEDUCED_NOEXCEPT_PARAM
0091 #endif
0092 #if defined(__APPLE_CC__) && defined(__clang_major__) && (__clang_major__ == 9) && (__clang_minor__ == 0)
0093 #  define BOOST_TT_NO_DEDUCED_NOEXCEPT_PARAM
0094 #  define BOOST_TT_NO_NOEXCEPT_SEPARATE_TYPE
0095 #endif
0096 //
0097 // If we have the SD6 macros (check for C++11's __cpp_rvalue_references), and we don't have __cpp_noexcept_function_type
0098 // set, then don't treat noexcept functions as seperate types.  This is a fix for msvc with the /Zc:noexceptTypes- flag set.
0099 //
0100 #if defined(__cpp_rvalue_references) && !defined(__cpp_noexcept_function_type) && !defined(BOOST_TT_NO_NOEXCEPT_SEPARATE_TYPE)
0101 #  define BOOST_TT_NO_NOEXCEPT_SEPARATE_TYPE
0102 #endif
0103 //
0104 // Check MSVC specific macro on older msvc compilers that don't support the SD6 macros, we don't rely on this
0105 // if the SD6 macros *are* available as it appears to be undocumented.
0106 //
0107 #if defined(BOOST_MSVC) && !defined(__cpp_rvalue_references) && !defined(BOOST_TT_NO_NOEXCEPT_SEPARATE_TYPE) && !defined(_NOEXCEPT_TYPES_SUPPORTED)
0108 #  define BOOST_TT_NO_NOEXCEPT_SEPARATE_TYPE
0109 #endif
0110 #if defined(__cpp_rvalue_references) && defined(__NVCC__) && defined(__CUDACC__) && !defined(BOOST_TT_NO_NOEXCEPT_SEPARATE_TYPE)
0111 #  define BOOST_TT_NO_NOEXCEPT_SEPARATE_TYPE
0112 #endif
0113 
0114 #endif // BOOST_TT_CONFIG_HPP_INCLUDED
0115 
0116