]> git.lyx.org Git - lyx.git/blob - 3rdparty/boost/boost/config/compiler/intel.hpp
move boost to 3rdparty directory
[lyx.git] / 3rdparty / boost / boost / config / compiler / intel.hpp
1 //  (C) Copyright John Maddock 2001-8.
2 //  (C) Copyright Peter Dimov 2001.
3 //  (C) Copyright Jens Maurer 2001.
4 //  (C) Copyright David Abrahams 2002 - 2003.
5 //  (C) Copyright Aleksey Gurtovoy 2002 - 2003.
6 //  (C) Copyright Guillaume Melquiond 2002 - 2003.
7 //  (C) Copyright Beman Dawes 2003.
8 //  (C) Copyright Martin Wille 2003.
9 //  Use, modification and distribution are subject to the
10 //  Boost Software License, Version 1.0. (See accompanying file
11 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
12
13 //  See http://www.boost.org for most recent version.
14
15 //  Intel compiler setup:
16
17 #if defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 1500) && (defined(_MSC_VER) || defined(__GNUC__))
18
19 #ifdef _MSC_VER
20
21 #include <boost/config/compiler/visualc.hpp>
22
23 #if (__INTEL_COMPILER >= 1500) && (_MSC_VER >= 1900)
24 //
25 // These appear to be supported, even though VC++ may not support them:
26 //
27 #define BOOST_HAS_EXPM1
28 #define BOOST_HAS_LOG1P
29 #undef BOOST_NO_CXX14_BINARY_LITERALS
30 // This one may be a little risky to enable??
31 #undef BOOST_NO_SFINAE_EXPR
32
33 #endif
34
35 #else
36
37 #include <boost/config/compiler/gcc.hpp>
38
39 #endif
40
41 #undef BOOST_COMPILER
42
43 #if defined(__INTEL_COMPILER)
44 #if __INTEL_COMPILER == 9999
45 #  define BOOST_INTEL_CXX_VERSION 1200 // Intel bug in 12.1.
46 #else
47 #  define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER
48 #endif
49 #elif defined(__ICL)
50 #  define BOOST_INTEL_CXX_VERSION __ICL
51 #elif defined(__ICC)
52 #  define BOOST_INTEL_CXX_VERSION __ICC
53 #elif defined(__ECC)
54 #  define BOOST_INTEL_CXX_VERSION __ECC
55 #endif
56
57 // Flags determined by comparing output of 'icpc -dM -E' with and without '-std=c++0x'
58 #if (!(defined(_WIN32) || defined(_WIN64)) && defined(__STDC_HOSTED__) && (__STDC_HOSTED__ && (BOOST_INTEL_CXX_VERSION <= 1200))) || defined(__GXX_EXPERIMENTAL_CPP0X__) || defined(__GXX_EXPERIMENTAL_CXX0X__)
59 #  define BOOST_INTEL_STDCXX0X
60 #endif
61 #if defined(_MSC_VER) && (_MSC_VER >= 1600)
62 #  define BOOST_INTEL_STDCXX0X
63 #endif
64
65 #ifdef __GNUC__
66 #  define BOOST_INTEL_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
67 #endif
68
69 #if !defined(BOOST_COMPILER)
70 #  if defined(BOOST_INTEL_STDCXX0X)
71 #    define BOOST_COMPILER "Intel C++ C++0x mode version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
72 #  else
73 #    define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
74 #  endif
75 #endif
76
77 #define BOOST_INTEL BOOST_INTEL_CXX_VERSION
78
79 #if defined(_WIN32) || defined(_WIN64)
80 #  define BOOST_INTEL_WIN BOOST_INTEL
81 #else
82 #  define BOOST_INTEL_LINUX BOOST_INTEL
83 #endif
84
85 #else
86
87 #include "boost/config/compiler/common_edg.hpp"
88
89 #if defined(__INTEL_COMPILER)
90 #if __INTEL_COMPILER == 9999
91 #  define BOOST_INTEL_CXX_VERSION 1200 // Intel bug in 12.1.
92 #else
93 #  define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER
94 #endif
95 #elif defined(__ICL)
96 #  define BOOST_INTEL_CXX_VERSION __ICL
97 #elif defined(__ICC)
98 #  define BOOST_INTEL_CXX_VERSION __ICC
99 #elif defined(__ECC)
100 #  define BOOST_INTEL_CXX_VERSION __ECC
101 #endif
102
103 // Flags determined by comparing output of 'icpc -dM -E' with and without '-std=c++0x'
104 #if (!(defined(_WIN32) || defined(_WIN64)) && defined(__STDC_HOSTED__) && (__STDC_HOSTED__ && (BOOST_INTEL_CXX_VERSION <= 1200))) || defined(__GXX_EXPERIMENTAL_CPP0X__) || defined(__GXX_EXPERIMENTAL_CXX0X__)
105 #  define BOOST_INTEL_STDCXX0X
106 #endif
107 #if defined(_MSC_VER) && (_MSC_VER >= 1600)
108 #  define BOOST_INTEL_STDCXX0X
109 #endif
110
111 #ifdef __GNUC__
112 #  define BOOST_INTEL_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
113 #endif
114
115 #if !defined(BOOST_COMPILER)
116 #  if defined(BOOST_INTEL_STDCXX0X)
117 #    define BOOST_COMPILER "Intel C++ C++0x mode version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
118 #  else
119 #    define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
120 #  endif
121 #endif
122
123 #define BOOST_INTEL BOOST_INTEL_CXX_VERSION
124
125 #if defined(_WIN32) || defined(_WIN64)
126 #  define BOOST_INTEL_WIN BOOST_INTEL
127 #else
128 #  define BOOST_INTEL_LINUX BOOST_INTEL
129 #endif
130
131 #if (BOOST_INTEL_CXX_VERSION <= 600)
132
133 #  if defined(_MSC_VER) && (_MSC_VER <= 1300) // added check for <= VC 7 (Peter Dimov)
134
135 // Boost libraries assume strong standard conformance unless otherwise
136 // indicated by a config macro. As configured by Intel, the EDG front-end
137 // requires certain compiler options be set to achieve that strong conformance.
138 // Particularly /Qoption,c,--arg_dep_lookup (reported by Kirk Klobe & Thomas Witt)
139 // and /Zc:wchar_t,forScope. See boost-root/tools/build/intel-win32-tools.jam for
140 // details as they apply to particular versions of the compiler. When the
141 // compiler does not predefine a macro indicating if an option has been set,
142 // this config file simply assumes the option has been set.
143 // Thus BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP will not be defined, even if
144 // the compiler option is not enabled.
145
146 #     define BOOST_NO_SWPRINTF
147 #  endif
148
149 // Void returns, 64 bit integrals don't work when emulating VC 6 (Peter Dimov)
150
151 #  if defined(_MSC_VER) && (_MSC_VER <= 1200)
152 #     define BOOST_NO_VOID_RETURNS
153 #     define BOOST_NO_INTEGRAL_INT64_T
154 #  endif
155
156 #endif
157
158 #if (BOOST_INTEL_CXX_VERSION <= 710) && defined(_WIN32)
159 #  define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
160 #endif
161
162 // See http://aspn.activestate.com/ASPN/Mail/Message/boost/1614864
163 #if BOOST_INTEL_CXX_VERSION < 600
164 #  define BOOST_NO_INTRINSIC_WCHAR_T
165 #else
166 // We should test the macro _WCHAR_T_DEFINED to check if the compiler
167 // supports wchar_t natively. *BUT* there is a problem here: the standard
168 // headers define this macro if they typedef wchar_t. Anyway, we're lucky
169 // because they define it without a value, while Intel C++ defines it
170 // to 1. So we can check its value to see if the macro was defined natively
171 // or not.
172 // Under UNIX, the situation is exactly the same, but the macro _WCHAR_T
173 // is used instead.
174 #  if ((_WCHAR_T_DEFINED + 0) == 0) && ((_WCHAR_T + 0) == 0)
175 #    define BOOST_NO_INTRINSIC_WCHAR_T
176 #  endif
177 #endif
178
179 #if defined(__GNUC__) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
180 //
181 // Figure out when Intel is emulating this gcc bug
182 // (All Intel versions prior to 9.0.26, and versions
183 // later than that if they are set up to emulate gcc 3.2
184 // or earlier):
185 //
186 #  if ((__GNUC__ == 3) && (__GNUC_MINOR__ <= 2)) || (BOOST_INTEL < 900) || (__INTEL_COMPILER_BUILD_DATE < 20050912)
187 #     define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
188 #  endif
189 #endif
190 #if (defined(__GNUC__) && (__GNUC__ < 4)) || (defined(_WIN32) && (BOOST_INTEL_CXX_VERSION <= 1200)) || (BOOST_INTEL_CXX_VERSION <= 1200)
191 // GCC or VC emulation:
192 #define BOOST_NO_TWO_PHASE_NAME_LOOKUP
193 #endif
194 //
195 // Verify that we have actually got BOOST_NO_INTRINSIC_WCHAR_T
196 // set correctly, if we don't do this now, we will get errors later
197 // in type_traits code among other things, getting this correct
198 // for the Intel compiler is actually remarkably fragile and tricky:
199 //
200 #ifdef __cplusplus
201 #if defined(BOOST_NO_INTRINSIC_WCHAR_T)
202 #include <cwchar>
203 template< typename T > struct assert_no_intrinsic_wchar_t;
204 template<> struct assert_no_intrinsic_wchar_t<wchar_t> { typedef void type; };
205 // if you see an error here then you need to unset BOOST_NO_INTRINSIC_WCHAR_T
206 // where it is defined above:
207 typedef assert_no_intrinsic_wchar_t<unsigned short>::type assert_no_intrinsic_wchar_t_;
208 #else
209 template< typename T > struct assert_intrinsic_wchar_t;
210 template<> struct assert_intrinsic_wchar_t<wchar_t> {};
211 // if you see an error here then define BOOST_NO_INTRINSIC_WCHAR_T on the command line:
212 template<> struct assert_intrinsic_wchar_t<unsigned short> {};
213 #endif
214 #endif
215
216 #if defined(_MSC_VER) && (_MSC_VER+0 >= 1000)
217 #  if _MSC_VER >= 1200
218 #     define BOOST_HAS_MS_INT64
219 #  endif
220 #  define BOOST_NO_SWPRINTF
221 #  define BOOST_NO_TWO_PHASE_NAME_LOOKUP
222 #elif defined(_WIN32)
223 #  define BOOST_DISABLE_WIN32
224 #endif
225
226 // I checked version 6.0 build 020312Z, it implements the NRVO.
227 // Correct this as you find out which version of the compiler
228 // implemented the NRVO first.  (Daniel Frey)
229 #if (BOOST_INTEL_CXX_VERSION >= 600)
230 #  define BOOST_HAS_NRVO
231 #endif
232
233 // Branch prediction hints
234 // I'm not sure 8.0 was the first version to support these builtins,
235 // update the condition if the version is not accurate. (Andrey Semashev)
236 #if defined(__GNUC__) && BOOST_INTEL_CXX_VERSION >= 800
237 #define BOOST_LIKELY(x) __builtin_expect(x, 1)
238 #define BOOST_UNLIKELY(x) __builtin_expect(x, 0)
239 #endif
240
241 // RTTI
242 // __RTTI is the EDG macro
243 // __INTEL_RTTI__ is the Intel macro
244 // __GXX_RTTI is the g++ macro
245 // _CPPRTTI is the MSVC++ macro
246 #if !defined(__RTTI) && !defined(__INTEL_RTTI__) && !defined(__GXX_RTTI) && !defined(_CPPRTTI)
247
248 #if !defined(BOOST_NO_RTTI)
249 # define BOOST_NO_RTTI
250 #endif
251
252 // in MS mode, static typeid works even when RTTI is off
253 #if !defined(_MSC_VER) && !defined(BOOST_NO_TYPEID)
254 # define BOOST_NO_TYPEID
255 #endif
256
257 #endif
258
259 //
260 // versions check:
261 // we don't support Intel prior to version 6.0:
262 #if BOOST_INTEL_CXX_VERSION < 600
263 #  error "Compiler not supported or configured - please reconfigure"
264 #endif
265
266 // Intel on MacOS requires
267 #if defined(__APPLE__) && defined(__INTEL_COMPILER)
268 #  define BOOST_NO_TWO_PHASE_NAME_LOOKUP
269 #endif
270
271 // Intel on Altix Itanium
272 #if defined(__itanium__) && defined(__INTEL_COMPILER)
273 #  define BOOST_NO_TWO_PHASE_NAME_LOOKUP
274 #endif
275
276 //
277 // An attempt to value-initialize a pointer-to-member may trigger an
278 // internal error on Intel <= 11.1 (last checked version), as was
279 // reported by John Maddock, Intel support issue 589832, May 2010.
280 // Moreover, according to test results from Huang-Vista-x86_32_intel,
281 // intel-vc9-win-11.1 may leave a non-POD array uninitialized, in some
282 // cases when it should be value-initialized.
283 // (Niels Dekker, LKEB, May 2010)
284 // Apparently Intel 12.1 (compiler version number 9999 !!) has the same issue (compiler regression).
285 #if defined(__INTEL_COMPILER)
286 #  if (__INTEL_COMPILER <= 1110) || (__INTEL_COMPILER == 9999) || (defined(_WIN32) && (__INTEL_COMPILER < 1600))
287 #    define BOOST_NO_COMPLETE_VALUE_INITIALIZATION
288 #  endif
289 #endif
290
291 //
292 // Dynamic shared object (DSO) and dynamic-link library (DLL) support
293 //
294 #if defined(__GNUC__) && (__GNUC__ >= 4)
295 #  define BOOST_SYMBOL_EXPORT __attribute__((visibility("default")))
296 #  define BOOST_SYMBOL_IMPORT
297 #  define BOOST_SYMBOL_VISIBLE __attribute__((visibility("default")))
298 #endif
299 //
300 // C++0x features
301 // For each feature we need to check both the Intel compiler version, 
302 // and the version of MSVC or GCC that we are emulating.
303 // See http://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler/
304 // for a list of which features were implemented in which Intel releases.
305 //
306 #if defined(BOOST_INTEL_STDCXX0X)
307 // BOOST_NO_CXX11_CONSTEXPR:
308 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40600)) && !defined(_MSC_VER)
309 // Available in earlier Intel versions, but fail our tests:
310 #  undef BOOST_NO_CXX11_CONSTEXPR
311 #endif
312 // BOOST_NO_CXX11_NULLPTR:
313 #if (BOOST_INTEL_CXX_VERSION >= 1210) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40600)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
314 #  undef BOOST_NO_CXX11_NULLPTR
315 #endif
316 // BOOST_NO_CXX11_TEMPLATE_ALIASES
317 #if (BOOST_INTEL_CXX_VERSION >= 1210) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40700)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
318 #  undef BOOST_NO_CXX11_TEMPLATE_ALIASES
319 #endif
320
321 // BOOST_NO_CXX11_DECLTYPE
322 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40300)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
323 #  undef BOOST_NO_CXX11_DECLTYPE
324 #endif
325
326 // BOOST_NO_CXX11_DECLTYPE_N3276
327 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40800)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
328 #  undef BOOST_NO_CXX11_DECLTYPE_N3276
329 #endif
330
331 // BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
332 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40300)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
333 #  undef BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
334 #endif
335
336 // BOOST_NO_CXX11_RVALUE_REFERENCES
337 #if (BOOST_INTEL_CXX_VERSION >= 1300) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40300)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
338 // This is available from earlier Intel versions, but breaks Filesystem and other libraries:
339 #  undef BOOST_NO_CXX11_RVALUE_REFERENCES
340 #endif
341
342 // BOOST_NO_CXX11_STATIC_ASSERT
343 #if (BOOST_INTEL_CXX_VERSION >= 1110) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40300)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
344 #  undef BOOST_NO_CXX11_STATIC_ASSERT
345 #endif
346
347 // BOOST_NO_CXX11_VARIADIC_TEMPLATES
348 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
349 #  undef BOOST_NO_CXX11_VARIADIC_TEMPLATES
350 #endif
351
352 // BOOST_NO_CXX11_VARIADIC_MACROS
353 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40200)) && (!defined(_MSC_VER) || (_MSC_VER >= 1400))
354 #  undef BOOST_NO_CXX11_VARIADIC_MACROS
355 #endif
356
357 // BOOST_NO_CXX11_AUTO_DECLARATIONS
358 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
359 #  undef BOOST_NO_CXX11_AUTO_DECLARATIONS
360 #endif
361
362 // BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
363 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
364 #  undef BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
365 #endif
366
367 // BOOST_NO_CXX11_CHAR16_T
368 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
369 #  undef BOOST_NO_CXX11_CHAR16_T
370 #endif
371
372 // BOOST_NO_CXX11_CHAR32_T
373 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
374 #  undef BOOST_NO_CXX11_CHAR32_T
375 #endif
376
377 // BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
378 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
379 #  undef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
380 #endif
381
382 // BOOST_NO_CXX11_DELETED_FUNCTIONS
383 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
384 #  undef BOOST_NO_CXX11_DELETED_FUNCTIONS
385 #endif
386
387 // BOOST_NO_CXX11_HDR_INITIALIZER_LIST
388 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))
389 #  undef BOOST_NO_CXX11_HDR_INITIALIZER_LIST
390 #endif
391
392 // BOOST_NO_CXX11_SCOPED_ENUMS
393 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40501)) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))
394 // This is available but broken in earlier Intel releases.
395 #  undef BOOST_NO_CXX11_SCOPED_ENUMS
396 #endif
397
398 // BOOST_NO_SFINAE_EXPR
399 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
400 #  undef BOOST_NO_SFINAE_EXPR
401 #endif
402
403 // BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
404 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
405 // This is available in earlier Intel releases, but breaks Multiprecision:
406 #  undef BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
407 #endif
408
409 // BOOST_NO_CXX11_LAMBDAS
410 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
411 #  undef BOOST_NO_CXX11_LAMBDAS
412 #endif
413
414 // BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
415 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500))
416 #  undef BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
417 #endif
418
419 // BOOST_NO_CXX11_RANGE_BASED_FOR
420 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40600)) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))
421 #  undef BOOST_NO_CXX11_RANGE_BASED_FOR
422 #endif
423
424 // BOOST_NO_CXX11_RAW_LITERALS
425 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
426 #  undef BOOST_NO_CXX11_RAW_LITERALS
427 #endif
428
429 // BOOST_NO_CXX11_UNICODE_LITERALS
430 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
431 #  undef BOOST_NO_CXX11_UNICODE_LITERALS
432 #endif
433
434 // BOOST_NO_CXX11_NOEXCEPT
435 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40600)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
436 // Available in earlier Intel release, but generates errors when used with 
437 // conditional exception specifications, for example in multiprecision:
438 #  undef BOOST_NO_CXX11_NOEXCEPT
439 #endif
440
441 // BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
442 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40600)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
443 #  undef BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
444 #endif
445
446 // BOOST_NO_CXX11_USER_DEFINED_LITERALS
447 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40700)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 190021730))
448 #  undef BOOST_NO_CXX11_USER_DEFINED_LITERALS
449 #endif
450
451 // BOOST_NO_CXX11_ALIGNAS
452 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40800)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 190021730))
453 #  undef BOOST_NO_CXX11_ALIGNAS
454 #endif
455
456 // BOOST_NO_CXX11_TRAILING_RESULT_TYPES
457 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
458 #  undef BOOST_NO_CXX11_TRAILING_RESULT_TYPES
459 #endif
460
461 // BOOST_NO_CXX11_INLINE_NAMESPACES
462 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 190021730))
463 #  undef BOOST_NO_CXX11_INLINE_NAMESPACES
464 #endif
465
466 // BOOST_NO_CXX11_REF_QUALIFIERS
467 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40800)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 190021730))
468 #  undef BOOST_NO_CXX11_REF_QUALIFIERS
469 #endif
470
471 // BOOST_NO_CXX11_FINAL
472 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40700)) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))
473 #  undef BOOST_NO_CXX11_FINAL
474 #endif
475
476 #endif
477
478 //
479 // Broken in all versions up to 15:
480 #define BOOST_NO_CXX11_FIXED_LENGTH_VARIADIC_TEMPLATE_EXPANSION_PACKS
481
482 #if defined(BOOST_INTEL_STDCXX0X) && (BOOST_INTEL_CXX_VERSION <= 1310)
483 #  define BOOST_NO_CXX11_HDR_FUTURE
484 #  define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
485 #endif
486
487 #if defined(BOOST_INTEL_STDCXX0X) && (BOOST_INTEL_CXX_VERSION == 1400)
488 // A regression in Intel's compiler means that <tuple> seems to be broken in this release as well as <future> :
489 #  define BOOST_NO_CXX11_HDR_FUTURE
490 #  define BOOST_NO_CXX11_HDR_TUPLE
491 #endif
492
493 #if (BOOST_INTEL_CXX_VERSION < 1200)
494 //
495 // fenv.h appears not to work with Intel prior to 12.0:
496 //
497 #  define BOOST_NO_FENV_H
498 #endif
499
500 // Intel 13.10 fails to access defaulted functions of a base class declared in private or protected sections,
501 // producing the following errors:
502 // error #453: protected function "..." (declared at ...") is not accessible through a "..." pointer or object
503 #if (BOOST_INTEL_CXX_VERSION <= 1310)
504 #  define BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS
505 #endif
506
507 #if defined(_MSC_VER) && (_MSC_VER >= 1600)
508 #  define BOOST_HAS_STDINT_H
509 #endif
510
511 #if defined(__LP64__) && defined(__GNUC__) && (BOOST_INTEL_CXX_VERSION >= 1310) && !defined(__CUDACC__)
512 #  define BOOST_HAS_INT128
513 #endif
514
515 #endif
516 //
517 // last known and checked version:
518 #if (BOOST_INTEL_CXX_VERSION > 1500)
519 #  if defined(BOOST_ASSERT_CONFIG)
520 #     error "Unknown compiler version - please run the configure tests and report the results"
521 #  elif defined(_MSC_VER)
522 //
523 //      We don't emit this warning any more, since we have so few
524 //      defect macros set anyway (just the one).
525 //
526 //#     pragma message("Unknown compiler version - please run the configure tests and report the results")
527 #  endif
528 #endif
529