1 | // (C) Copyright John Maddock 2001 - 2003. |
---|
2 | // (C) Copyright Jens Maurer 2001. |
---|
3 | // (C) Copyright Peter Dimov 2001. |
---|
4 | // (C) Copyright David Abrahams 2002. |
---|
5 | // (C) Copyright Guillaume Melquiond 2003. |
---|
6 | // Use, modification and distribution are subject to the |
---|
7 | // Boost Software License, Version 1.0. (See accompanying file |
---|
8 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
---|
9 | |
---|
10 | // See http://www.boost.org for most recent version. |
---|
11 | |
---|
12 | // Dinkumware standard library config: |
---|
13 | |
---|
14 | #if !defined(_YVALS) && !defined(_CPPLIB_VER) |
---|
15 | #include <boost/config/no_tr1/utility.hpp> |
---|
16 | #if !defined(_YVALS) && !defined(_CPPLIB_VER) |
---|
17 | #error This is not the Dinkumware lib! |
---|
18 | #endif |
---|
19 | #endif |
---|
20 | |
---|
21 | |
---|
22 | #if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306) |
---|
23 | // full dinkumware 3.06 and above |
---|
24 | // fully conforming provided the compiler supports it: |
---|
25 | # if !(defined(_GLOBAL_USING) && (_GLOBAL_USING+0 > 0)) && !defined(__BORLANDC__) && !defined(_STD) && !(defined(__ICC) && (__ICC >= 700)) // can be defined in yvals.h |
---|
26 | # define BOOST_NO_STDC_NAMESPACE |
---|
27 | # endif |
---|
28 | # if !(defined(_HAS_MEMBER_TEMPLATES_REBIND) && (_HAS_MEMBER_TEMPLATES_REBIND+0 > 0)) && !(defined(_MSC_VER) && (_MSC_VER > 1300)) && defined(BOOST_MSVC) |
---|
29 | # define BOOST_NO_STD_ALLOCATOR |
---|
30 | # endif |
---|
31 | # define BOOST_HAS_PARTIAL_STD_ALLOCATOR |
---|
32 | # if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) |
---|
33 | // if this lib version is set up for vc6 then there is no std::use_facet: |
---|
34 | # define BOOST_NO_STD_USE_FACET |
---|
35 | # define BOOST_HAS_TWO_ARG_USE_FACET |
---|
36 | // C lib functions aren't in namespace std either: |
---|
37 | # define BOOST_NO_STDC_NAMESPACE |
---|
38 | // and nor is <exception> |
---|
39 | # define BOOST_NO_EXCEPTION_STD_NAMESPACE |
---|
40 | # endif |
---|
41 | // There's no numeric_limits<long long> support unless _LONGLONG is defined: |
---|
42 | # if !defined(_LONGLONG) && (_CPPLIB_VER <= 310) |
---|
43 | # define BOOST_NO_MS_INT64_NUMERIC_LIMITS |
---|
44 | # endif |
---|
45 | // 3.06 appears to have (non-sgi versions of) <hash_set> & <hash_map>, |
---|
46 | // and no <slist> at all |
---|
47 | #else |
---|
48 | # define BOOST_MSVC_STD_ITERATOR 1 |
---|
49 | # define BOOST_NO_STD_ITERATOR |
---|
50 | # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS |
---|
51 | # define BOOST_NO_STD_ALLOCATOR |
---|
52 | # define BOOST_NO_STDC_NAMESPACE |
---|
53 | # define BOOST_NO_STD_USE_FACET |
---|
54 | # define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN |
---|
55 | # define BOOST_HAS_MACRO_USE_FACET |
---|
56 | # ifndef _CPPLIB_VER |
---|
57 | // Updated Dinkum library defines this, and provides |
---|
58 | // its own min and max definitions, as does MTA version. |
---|
59 | # ifndef __MTA__ |
---|
60 | # define BOOST_NO_STD_MIN_MAX |
---|
61 | # endif |
---|
62 | # define BOOST_NO_MS_INT64_NUMERIC_LIMITS |
---|
63 | # endif |
---|
64 | #endif |
---|
65 | |
---|
66 | // |
---|
67 | // std extension namespace is stdext for vc7.1 and later, |
---|
68 | // the same applies to other compilers that sit on top |
---|
69 | // of vc7.1 (Intel and Comeau): |
---|
70 | // |
---|
71 | #if defined(_MSC_VER) && (_MSC_VER >= 1310) && !defined(__BORLANDC__) |
---|
72 | # define BOOST_STD_EXTENSION_NAMESPACE stdext |
---|
73 | #endif |
---|
74 | |
---|
75 | |
---|
76 | #if (defined(_MSC_VER) && (_MSC_VER <= 1300) && !defined(__BORLANDC__)) || !defined(_CPPLIB_VER) || (_CPPLIB_VER < 306) |
---|
77 | // if we're using a dinkum lib that's |
---|
78 | // been configured for VC6/7 then there is |
---|
79 | // no iterator traits (true even for icl) |
---|
80 | # define BOOST_NO_STD_ITERATOR_TRAITS |
---|
81 | #endif |
---|
82 | |
---|
83 | #if defined(__ICL) && (__ICL < 800) && defined(_CPPLIB_VER) && (_CPPLIB_VER <= 310) |
---|
84 | // Intel C++ chokes over any non-trivial use of <locale> |
---|
85 | // this may be an overly restrictive define, but regex fails without it: |
---|
86 | # define BOOST_NO_STD_LOCALE |
---|
87 | #endif |
---|
88 | |
---|
89 | #include <typeinfo> |
---|
90 | #if !_HAS_EXCEPTIONS |
---|
91 | # define BOOST_NO_STD_TYPEINFO |
---|
92 | #endif |
---|
93 | |
---|
94 | // C++0x headers implemented in 520 (as shipped by Microsoft) |
---|
95 | // |
---|
96 | #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 520 |
---|
97 | # define BOOST_NO_0X_HDR_ARRAY |
---|
98 | # define BOOST_NO_0X_HDR_CODECVT |
---|
99 | # define BOOST_NO_0X_HDR_FORWARD_LIST |
---|
100 | # define BOOST_NO_0X_HDR_INITIALIZER_LIST |
---|
101 | # define BOOST_NO_0X_HDR_RANDOM |
---|
102 | # define BOOST_NO_0X_HDR_REGEX |
---|
103 | # define BOOST_NO_0X_HDR_SYSTEM_ERROR |
---|
104 | # define BOOST_NO_0X_HDR_TYPE_TRAITS |
---|
105 | # define BOOST_NO_STD_UNORDERED // deprecated; see following |
---|
106 | # define BOOST_NO_0X_HDR_UNORDERED_MAP |
---|
107 | # define BOOST_NO_0X_HDR_UNORDERED_SET |
---|
108 | # define BOOST_NO_0X_HDR_TUPLE |
---|
109 | # define BOOST_NO_0X_HDR_TYPEINDEX |
---|
110 | #endif |
---|
111 | |
---|
112 | #if !defined(_HAS_TR1_IMPORTS) && !defined(BOOST_NO_0X_HDR_TUPLE) |
---|
113 | # define BOOST_NO_0X_HDR_TUPLE |
---|
114 | #endif |
---|
115 | |
---|
116 | // C++0x headers not yet implemented |
---|
117 | // |
---|
118 | # define BOOST_NO_0X_HDR_CHRONO |
---|
119 | # define BOOST_NO_0X_HDR_CONCEPTS |
---|
120 | # define BOOST_NO_0X_HDR_CONDITION_VARIABLE |
---|
121 | # define BOOST_NO_0X_HDR_CONTAINER_CONCEPTS |
---|
122 | # define BOOST_NO_0X_HDR_FUTURE |
---|
123 | # define BOOST_NO_0X_HDR_ITERATOR_CONCEPTS |
---|
124 | # define BOOST_NO_0X_HDR_MEMORY_CONCEPTS |
---|
125 | # define BOOST_NO_0X_HDR_MUTEX |
---|
126 | # define BOOST_NO_0X_HDR_RATIO |
---|
127 | # define BOOST_NO_0X_HDR_THREAD |
---|
128 | |
---|
129 | #ifdef _CPPLIB_VER |
---|
130 | # define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER |
---|
131 | #else |
---|
132 | # define BOOST_DINKUMWARE_STDLIB 1 |
---|
133 | #endif |
---|
134 | |
---|
135 | #ifdef _CPPLIB_VER |
---|
136 | # define BOOST_STDLIB "Dinkumware standard library version " BOOST_STRINGIZE(_CPPLIB_VER) |
---|
137 | #else |
---|
138 | # define BOOST_STDLIB "Dinkumware standard library version 1.x" |
---|
139 | #endif |
---|
140 | |
---|
141 | |
---|
142 | |
---|
143 | |
---|
144 | |
---|
145 | |
---|
146 | |
---|
147 | |
---|
148 | |
---|