summaryrefslogtreecommitdiffstats
path: root/contrib/src/boost/type_traits/detail/config.hpp
blob: 4077665654534d04931a84af63d99448e5797f44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72

//  (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.

//  Use, modification and distribution are subject to the Boost Software License,

//  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at

//  http://www.boost.org/LICENSE_1_0.txt).

//

//  See http://www.boost.org/libs/type_traits for most recent version including documentation.


#ifndef BOOST_TT_CONFIG_HPP_INCLUDED

#define BOOST_TT_CONFIG_HPP_INCLUDED


#ifndef BOOST_CONFIG_HPP

#include <boost/config.hpp>

#endif

#include <boost/version.hpp>

#include <boost/detail/workaround.hpp>


//

// whenever we have a conversion function with ellipses

// it needs to be declared __cdecl to suppress compiler

// warnings from MS and Borland compilers (this *must*

// appear before we include is_same.hpp below):

#if defined(BOOST_MSVC) || (defined(__BORLANDC__) && !defined(BOOST_DISABLE_WIN32))

#   define BOOST_TT_DECL __cdecl

#else

#   define BOOST_TT_DECL /**/

#endif


# if (BOOST_WORKAROUND(__MWERKS__, < 0x3000)                         \

    || BOOST_WORKAROUND(__IBMCPP__, < 600 )                         \
    || BOOST_WORKAROUND(__BORLANDC__, < 0x5A0)                      \
    || defined(__ghs)                                               \
    || BOOST_WORKAROUND(__HP_aCC, < 60700)           \
    || BOOST_WORKAROUND(MPW_CPLUS, BOOST_TESTED_AT(0x890))          \
    || BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x580)))       \
    && defined(BOOST_NO_IS_ABSTRACT)

#   define BOOST_TT_NO_CONFORMING_IS_CLASS_IMPLEMENTATION 1


#endif


#ifndef BOOST_TT_NO_CONFORMING_IS_CLASS_IMPLEMENTATION

# define BOOST_TT_HAS_CONFORMING_IS_CLASS_IMPLEMENTATION 1

#endif


//

// define BOOST_TT_TEST_MS_FUNC_SIGS

// when we want to test __stdcall etc function types with is_function etc

// (Note, does not work with Borland, even though it does support __stdcall etc):

//

#if defined(_MSC_EXTENSIONS) && !defined(__BORLANDC__)

#  define BOOST_TT_TEST_MS_FUNC_SIGS

#endif


//

// define BOOST_TT_NO_CV_FUNC_TEST

// if tests for cv-qualified member functions don't 

// work in is_member_function_pointer

//

#if BOOST_WORKAROUND(__MWERKS__, < 0x3000) || BOOST_WORKAROUND(__IBMCPP__, <= 600)

#  define BOOST_TT_NO_CV_FUNC_TEST

#endif


//

// Macros that have been deprecated, defined here for backwards compatibility:

//

#define BOOST_BROKEN_COMPILER_TYPE_TRAITS_SPECIALIZATION(x)

#define BOOST_TT_BROKEN_COMPILER_SPEC(x)


#endif // BOOST_TT_CONFIG_HPP_INCLUDED