Chris@16
|
1 // (C) Copyright John Maddock 2001 - 2003.
|
Chris@16
|
2 // (C) Copyright Jens Maurer 2001.
|
Chris@16
|
3 // (C) Copyright David Abrahams 2003.
|
Chris@16
|
4 // (C) Copyright Boris Gubenko 2007.
|
Chris@16
|
5 // Use, modification and distribution are subject to the
|
Chris@16
|
6 // Boost Software License, Version 1.0. (See accompanying file
|
Chris@16
|
7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
8
|
Chris@16
|
9 // See http://www.boost.org for most recent version.
|
Chris@16
|
10
|
Chris@16
|
11 // Rogue Wave std lib:
|
Chris@16
|
12
|
Chris@16
|
13 #define BOOST_RW_STDLIB 1
|
Chris@16
|
14
|
Chris@16
|
15 #if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)
|
Chris@16
|
16 # include <boost/config/no_tr1/utility.hpp>
|
Chris@16
|
17 # if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)
|
Chris@16
|
18 # error This is not the Rogue Wave standard library
|
Chris@16
|
19 # endif
|
Chris@16
|
20 #endif
|
Chris@16
|
21 //
|
Chris@16
|
22 // figure out a consistent version number:
|
Chris@16
|
23 //
|
Chris@16
|
24 #ifndef _RWSTD_VER
|
Chris@16
|
25 # define BOOST_RWSTD_VER 0x010000
|
Chris@16
|
26 #elif _RWSTD_VER < 0x010000
|
Chris@16
|
27 # define BOOST_RWSTD_VER (_RWSTD_VER << 8)
|
Chris@16
|
28 #else
|
Chris@16
|
29 # define BOOST_RWSTD_VER _RWSTD_VER
|
Chris@16
|
30 #endif
|
Chris@16
|
31
|
Chris@16
|
32 #ifndef _RWSTD_VER
|
Chris@16
|
33 # define BOOST_STDLIB "Rogue Wave standard library version (Unknown version)"
|
Chris@16
|
34 #elif _RWSTD_VER < 0x04010200
|
Chris@16
|
35 # define BOOST_STDLIB "Rogue Wave standard library version " BOOST_STRINGIZE(_RWSTD_VER)
|
Chris@16
|
36 #else
|
Chris@16
|
37 # ifdef _RWSTD_VER_STR
|
Chris@16
|
38 # define BOOST_STDLIB "Apache STDCXX standard library version " _RWSTD_VER_STR
|
Chris@16
|
39 # else
|
Chris@16
|
40 # define BOOST_STDLIB "Apache STDCXX standard library version " BOOST_STRINGIZE(_RWSTD_VER)
|
Chris@16
|
41 # endif
|
Chris@16
|
42 #endif
|
Chris@16
|
43
|
Chris@16
|
44 //
|
Chris@16
|
45 // Prior to version 2.2.0 the primary template for std::numeric_limits
|
Chris@16
|
46 // does not have compile time constants, even though specializations of that
|
Chris@16
|
47 // template do:
|
Chris@16
|
48 //
|
Chris@16
|
49 #if BOOST_RWSTD_VER < 0x020200
|
Chris@16
|
50 # define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
Chris@16
|
51 #endif
|
Chris@16
|
52
|
Chris@16
|
53 // Sun CC 5.5 patch 113817-07 adds long long specialization, but does not change the
|
Chris@16
|
54 // library version number (http://sunsolve6.sun.com/search/document.do?assetkey=1-21-113817):
|
Chris@16
|
55 #if BOOST_RWSTD_VER <= 0x020101 && (!defined(__SUNPRO_CC) || (__SUNPRO_CC < 0x550))
|
Chris@16
|
56 # define BOOST_NO_LONG_LONG_NUMERIC_LIMITS
|
Chris@16
|
57 # endif
|
Chris@16
|
58
|
Chris@16
|
59 //
|
Chris@16
|
60 // Borland version of numeric_limits lacks __int64 specialisation:
|
Chris@16
|
61 //
|
Chris@16
|
62 #ifdef __BORLANDC__
|
Chris@16
|
63 # define BOOST_NO_MS_INT64_NUMERIC_LIMITS
|
Chris@16
|
64 #endif
|
Chris@16
|
65
|
Chris@16
|
66 //
|
Chris@16
|
67 // No std::iterator if it can't figure out default template args:
|
Chris@16
|
68 //
|
Chris@16
|
69 #if defined(_RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || defined(RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || (BOOST_RWSTD_VER < 0x020000)
|
Chris@16
|
70 # define BOOST_NO_STD_ITERATOR
|
Chris@16
|
71 #endif
|
Chris@16
|
72
|
Chris@16
|
73 //
|
Chris@16
|
74 // No iterator traits without partial specialization:
|
Chris@16
|
75 //
|
Chris@16
|
76 #if defined(_RWSTD_NO_CLASS_PARTIAL_SPEC) || defined(RWSTD_NO_CLASS_PARTIAL_SPEC)
|
Chris@16
|
77 # define BOOST_NO_STD_ITERATOR_TRAITS
|
Chris@16
|
78 #endif
|
Chris@16
|
79
|
Chris@16
|
80 //
|
Chris@16
|
81 // Prior to version 2.0, std::auto_ptr was buggy, and there were no
|
Chris@16
|
82 // new-style iostreams, and no conformant std::allocator:
|
Chris@16
|
83 //
|
Chris@16
|
84 #if (BOOST_RWSTD_VER < 0x020000)
|
Chris@16
|
85 # define BOOST_NO_AUTO_PTR
|
Chris@16
|
86 # define BOOST_NO_STRINGSTREAM
|
Chris@16
|
87 # define BOOST_NO_STD_ALLOCATOR
|
Chris@16
|
88 # define BOOST_NO_STD_LOCALE
|
Chris@16
|
89 #endif
|
Chris@16
|
90
|
Chris@16
|
91 //
|
Chris@16
|
92 // No template iterator constructors without member template support:
|
Chris@16
|
93 //
|
Chris@16
|
94 #if defined(RWSTD_NO_MEMBER_TEMPLATES) || defined(_RWSTD_NO_MEMBER_TEMPLATES)
|
Chris@16
|
95 # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
|
Chris@16
|
96 #endif
|
Chris@16
|
97
|
Chris@16
|
98 //
|
Chris@16
|
99 // RW defines _RWSTD_ALLOCATOR if the allocator is conformant and in use
|
Chris@16
|
100 // (the or _HPACC_ part is a hack - the library seems to define _RWSTD_ALLOCATOR
|
Chris@16
|
101 // on HP aCC systems even though the allocator is in fact broken):
|
Chris@16
|
102 //
|
Chris@16
|
103 #if !defined(_RWSTD_ALLOCATOR) || (defined(__HP_aCC) && __HP_aCC <= 33100)
|
Chris@16
|
104 # define BOOST_NO_STD_ALLOCATOR
|
Chris@16
|
105 #endif
|
Chris@16
|
106
|
Chris@16
|
107 //
|
Chris@16
|
108 // If we have a std::locale, we still may not have std::use_facet:
|
Chris@16
|
109 //
|
Chris@16
|
110 #if defined(_RWSTD_NO_TEMPLATE_ON_RETURN_TYPE) && !defined(BOOST_NO_STD_LOCALE)
|
Chris@16
|
111 # define BOOST_NO_STD_USE_FACET
|
Chris@16
|
112 # define BOOST_HAS_TWO_ARG_USE_FACET
|
Chris@16
|
113 #endif
|
Chris@16
|
114
|
Chris@16
|
115 //
|
Chris@16
|
116 // There's no std::distance prior to version 2, or without
|
Chris@16
|
117 // partial specialization support:
|
Chris@16
|
118 //
|
Chris@16
|
119 #if (BOOST_RWSTD_VER < 0x020000) || defined(_RWSTD_NO_CLASS_PARTIAL_SPEC)
|
Chris@16
|
120 #define BOOST_NO_STD_DISTANCE
|
Chris@16
|
121 #endif
|
Chris@16
|
122
|
Chris@16
|
123 //
|
Chris@16
|
124 // Some versions of the rogue wave library don't have assignable
|
Chris@16
|
125 // OutputIterators:
|
Chris@16
|
126 //
|
Chris@16
|
127 #if BOOST_RWSTD_VER < 0x020100
|
Chris@16
|
128 # define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN
|
Chris@16
|
129 #endif
|
Chris@16
|
130
|
Chris@16
|
131 //
|
Chris@16
|
132 // Disable BOOST_HAS_LONG_LONG when the library has no support for it.
|
Chris@16
|
133 //
|
Chris@16
|
134 #if !defined(_RWSTD_LONG_LONG) && defined(BOOST_HAS_LONG_LONG)
|
Chris@16
|
135 # undef BOOST_HAS_LONG_LONG
|
Chris@16
|
136 #endif
|
Chris@16
|
137
|
Chris@16
|
138 //
|
Chris@16
|
139 // check that on HP-UX, the proper RW library is used
|
Chris@16
|
140 //
|
Chris@16
|
141 #if defined(__HP_aCC) && !defined(_HP_NAMESPACE_STD)
|
Chris@16
|
142 # error "Boost requires Standard RW library. Please compile and link with -AA"
|
Chris@16
|
143 #endif
|
Chris@16
|
144
|
Chris@16
|
145 //
|
Chris@16
|
146 // Define macros specific to RW V2.2 on HP-UX
|
Chris@16
|
147 //
|
Chris@16
|
148 #if defined(__HP_aCC) && (BOOST_RWSTD_VER == 0x02020100)
|
Chris@16
|
149 # ifndef __HP_TC1_MAKE_PAIR
|
Chris@16
|
150 # define __HP_TC1_MAKE_PAIR
|
Chris@16
|
151 # endif
|
Chris@16
|
152 # ifndef _HP_INSTANTIATE_STD2_VL
|
Chris@16
|
153 # define _HP_INSTANTIATE_STD2_VL
|
Chris@16
|
154 # endif
|
Chris@16
|
155 #endif
|
Chris@16
|
156
|
Chris@16
|
157 #if _RWSTD_VER < 0x05000000
|
Chris@16
|
158 # define BOOST_NO_CXX11_HDR_ARRAY
|
Chris@16
|
159 #endif
|
Chris@16
|
160 // type_traits header is incomplete:
|
Chris@16
|
161 # define BOOST_NO_CXX11_HDR_TYPE_TRAITS
|
Chris@16
|
162 //
|
Chris@16
|
163 // C++0x headers not yet implemented
|
Chris@16
|
164 //
|
Chris@16
|
165 # define BOOST_NO_CXX11_HDR_CHRONO
|
Chris@16
|
166 # define BOOST_NO_CXX11_HDR_CODECVT
|
Chris@16
|
167 # define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
|
Chris@16
|
168 # define BOOST_NO_CXX11_HDR_FORWARD_LIST
|
Chris@16
|
169 # define BOOST_NO_CXX11_HDR_FUTURE
|
Chris@16
|
170 # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
|
Chris@16
|
171 # define BOOST_NO_CXX11_HDR_MUTEX
|
Chris@16
|
172 # define BOOST_NO_CXX11_HDR_RANDOM
|
Chris@16
|
173 # define BOOST_NO_CXX11_HDR_RATIO
|
Chris@16
|
174 # define BOOST_NO_CXX11_HDR_REGEX
|
Chris@16
|
175 # define BOOST_NO_CXX11_HDR_SYSTEM_ERROR
|
Chris@16
|
176 # define BOOST_NO_CXX11_HDR_THREAD
|
Chris@16
|
177 # define BOOST_NO_CXX11_HDR_TUPLE
|
Chris@16
|
178 # define BOOST_NO_CXX11_HDR_TYPEINDEX
|
Chris@16
|
179 # define BOOST_NO_CXX11_HDR_UNORDERED_MAP
|
Chris@16
|
180 # define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
Chris@16
|
181 # define BOOST_NO_CXX11_NUMERIC_LIMITS
|
Chris@16
|
182 # define BOOST_NO_CXX11_ALLOCATOR
|
Chris@16
|
183 # define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
Chris@16
|
184 # define BOOST_NO_CXX11_SMART_PTR
|
Chris@16
|
185 # define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
Chris@101
|
186 # define BOOST_NO_CXX11_HDR_ATOMIC
|
Chris@101
|
187 # define BOOST_NO_CXX11_STD_ALIGN
|
Chris@101
|
188 # define BOOST_NO_CXX11_ADDRESSOF
|
Chris@16
|
189
|