2 // (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
3 // Use, modification and distribution are subject to the Boost Software License,
4 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt).
7 // See http://www.boost.org/libs/type_traits for most recent version including documentation.
9 #ifndef BOOST_TT_CONFIG_HPP_INCLUDED
10 #define BOOST_TT_CONFIG_HPP_INCLUDED
12 #ifndef BOOST_CONFIG_HPP
13 #include <boost/config.hpp>
15 #include <boost/version.hpp>
16 #include <boost/detail/workaround.hpp>
19 // whenever we have a conversion function with ellipses
20 // it needs to be declared __cdecl to suppress compiler
21 // warnings from MS and Borland compilers (this *must*
22 // appear before we include is_same.hpp below):
23 #if defined(BOOST_MSVC) || (defined(__BORLANDC__) && !defined(BOOST_DISABLE_WIN32))
24 # define BOOST_TT_DECL __cdecl
26 # define BOOST_TT_DECL /**/
29 # if (BOOST_WORKAROUND(__MWERKS__, < 0x3000) \
30 || BOOST_WORKAROUND(__IBMCPP__, < 600 ) \
31 || BOOST_WORKAROUND(__BORLANDC__, < 0x5A0) \
33 || BOOST_WORKAROUND(__HP_aCC, < 60700) \
34 || BOOST_WORKAROUND(MPW_CPLUS, BOOST_TESTED_AT(0x890)) \
35 || BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x580))) \
36 && defined(BOOST_NO_IS_ABSTRACT)
38 # define BOOST_TT_NO_CONFORMING_IS_CLASS_IMPLEMENTATION 1
42 #ifndef BOOST_TT_NO_CONFORMING_IS_CLASS_IMPLEMENTATION
43 # define BOOST_TT_HAS_CONFORMING_IS_CLASS_IMPLEMENTATION 1
47 // define BOOST_TT_TEST_MS_FUNC_SIGS
48 // when we want to test __stdcall etc function types with is_function etc
49 // (Note, does not work with Borland, even though it does support __stdcall etc):
51 #if defined(_MSC_EXTENSIONS) && !defined(__BORLANDC__)
52 # define BOOST_TT_TEST_MS_FUNC_SIGS
56 // define BOOST_TT_NO_CV_FUNC_TEST
57 // if tests for cv-qualified member functions don't
58 // work in is_member_function_pointer
60 #if BOOST_WORKAROUND(__MWERKS__, < 0x3000) || BOOST_WORKAROUND(__IBMCPP__, <= 600)
61 # define BOOST_TT_NO_CV_FUNC_TEST
65 // Macros that have been deprecated, defined here for backwards compatibility:
67 #define BOOST_BROKEN_COMPILER_TYPE_TRAITS_SPECIALIZATION(x)
68 #define BOOST_TT_BROKEN_COMPILER_SPEC(x)
70 #endif // BOOST_TT_CONFIG_HPP_INCLUDED