17 #if defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 1500) && (defined(_MSC_VER) || defined(__GNUC__))
24 #undef BOOST_MSVC_FULL_VER
26 #if (__INTEL_COMPILER >= 1500) && (_MSC_VER >= 1900)
30 #define BOOST_HAS_EXPM1
31 #define BOOST_HAS_LOG1P
32 #undef BOOST_NO_CXX14_BINARY_LITERALS
34 #undef BOOST_NO_SFINAE_EXPR
42 #undef BOOST_GCC_VERSION
43 #undef BOOST_GCC_CXX11
49 #if defined(__INTEL_COMPILER)
50 #if __INTEL_COMPILER == 9999
51 # define BOOST_INTEL_CXX_VERSION 1200 // Intel bug in 12.1.
53 # define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER
56 # define BOOST_INTEL_CXX_VERSION __ICL
58 # define BOOST_INTEL_CXX_VERSION __ICC
60 # define BOOST_INTEL_CXX_VERSION __ECC
64 #if (!(defined(_WIN32) || defined(_WIN64)) && defined(__STDC_HOSTED__) && (__STDC_HOSTED__ && (BOOST_INTEL_CXX_VERSION <= 1200))) || defined(__GXX_EXPERIMENTAL_CPP0X__) || defined(__GXX_EXPERIMENTAL_CXX0X__)
65 # define BOOST_INTEL_STDCXX0X
67 #if defined(_MSC_VER) && (_MSC_VER >= 1600)
68 # define BOOST_INTEL_STDCXX0X
72 # define BOOST_INTEL_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
75 #if !defined(BOOST_COMPILER)
76 # if defined(BOOST_INTEL_STDCXX0X)
77 # define BOOST_COMPILER "Intel C++ C++0x mode version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
79 # define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
83 #define BOOST_INTEL BOOST_INTEL_CXX_VERSION
85 #if defined(_WIN32) || defined(_WIN64)
86 # define BOOST_INTEL_WIN BOOST_INTEL
88 # define BOOST_INTEL_LINUX BOOST_INTEL
95 #if defined(__INTEL_COMPILER)
96 #if __INTEL_COMPILER == 9999
97 # define BOOST_INTEL_CXX_VERSION 1200 // Intel bug in 12.1.
99 # define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER
102 # define BOOST_INTEL_CXX_VERSION __ICL
104 # define BOOST_INTEL_CXX_VERSION __ICC
106 # define BOOST_INTEL_CXX_VERSION __ECC
110 #if (!(defined(_WIN32) || defined(_WIN64)) && defined(__STDC_HOSTED__) && (__STDC_HOSTED__ && (BOOST_INTEL_CXX_VERSION <= 1200))) || defined(__GXX_EXPERIMENTAL_CPP0X__) || defined(__GXX_EXPERIMENTAL_CXX0X__)
111 # define BOOST_INTEL_STDCXX0X
113 #if defined(_MSC_VER) && (_MSC_VER >= 1600)
114 # define BOOST_INTEL_STDCXX0X
118 # define BOOST_INTEL_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
121 #if !defined(BOOST_COMPILER)
122 # if defined(BOOST_INTEL_STDCXX0X)
123 # define BOOST_COMPILER "Intel C++ C++0x mode version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
125 # define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
129 #define BOOST_INTEL BOOST_INTEL_CXX_VERSION
131 #if defined(_WIN32) || defined(_WIN64)
132 # define BOOST_INTEL_WIN BOOST_INTEL
134 # define BOOST_INTEL_LINUX BOOST_INTEL
137 #if (BOOST_INTEL_CXX_VERSION <= 600)
139 # if defined(_MSC_VER) && (_MSC_VER <= 1300) // added check for <= VC 7 (Peter Dimov)
152 # define BOOST_NO_SWPRINTF
157 # if defined(_MSC_VER) && (_MSC_VER <= 1200)
158 # define BOOST_NO_VOID_RETURNS
159 # define BOOST_NO_INTEGRAL_INT64_T
164 #if (BOOST_INTEL_CXX_VERSION <= 710) && defined(_WIN32)
165 # define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
169 #if BOOST_INTEL_CXX_VERSION < 600
170 # define BOOST_NO_INTRINSIC_WCHAR_T
180 # if ((_WCHAR_T_DEFINED + 0) == 0) && ((_WCHAR_T + 0) == 0)
181 # define BOOST_NO_INTRINSIC_WCHAR_T
185 #if defined(__GNUC__) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
192 # if ((__GNUC__ == 3) && (__GNUC_MINOR__ <= 2)) || (BOOST_INTEL < 900) || (__INTEL_COMPILER_BUILD_DATE < 20050912)
193 # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
196 #if (defined(__GNUC__) && (__GNUC__ < 4)) || (defined(_WIN32) && (BOOST_INTEL_CXX_VERSION <= 1200)) || (BOOST_INTEL_CXX_VERSION <= 1200)
198 #define BOOST_NO_TWO_PHASE_NAME_LOOKUP
207 #if defined(BOOST_NO_INTRINSIC_WCHAR_T)
209 template<
typename T >
struct assert_no_intrinsic_wchar_t;
210 template<>
struct assert_no_intrinsic_wchar_t<wchar_t> {
typedef void type; };
213 typedef assert_no_intrinsic_wchar_t<unsigned short>::type assert_no_intrinsic_wchar_t_;
215 template<
typename T >
struct assert_intrinsic_wchar_t;
216 template<>
struct assert_intrinsic_wchar_t<wchar_t> {};
218 template<>
struct assert_intrinsic_wchar_t<unsigned short> {};
222 #if defined(_MSC_VER) && (_MSC_VER+0 >= 1000)
223 # if _MSC_VER >= 1200
224 # define BOOST_HAS_MS_INT64
226 # define BOOST_NO_SWPRINTF
227 # define BOOST_NO_TWO_PHASE_NAME_LOOKUP
228 #elif defined(_WIN32)
229 # define BOOST_DISABLE_WIN32
235 #if (BOOST_INTEL_CXX_VERSION >= 600)
236 # define BOOST_HAS_NRVO
242 #if defined(__GNUC__) && BOOST_INTEL_CXX_VERSION >= 800
243 #define BOOST_LIKELY(x) __builtin_expect(x, 1)
244 #define BOOST_UNLIKELY(x) __builtin_expect(x, 0)
252 #if !defined(__RTTI) && !defined(__INTEL_RTTI__) && !defined(__GXX_RTTI) && !defined(_CPPRTTI)
254 #if !defined(BOOST_NO_RTTI)
255 # define BOOST_NO_RTTI
259 #if !defined(_MSC_VER) && !defined(BOOST_NO_TYPEID)
260 # define BOOST_NO_TYPEID
268 #if BOOST_INTEL_CXX_VERSION < 600
269 # error "Compiler not supported or configured - please reconfigure"
273 #if defined(__APPLE__) && defined(__INTEL_COMPILER)
274 # define BOOST_NO_TWO_PHASE_NAME_LOOKUP
278 #if defined(__itanium__) && defined(__INTEL_COMPILER)
279 # define BOOST_NO_TWO_PHASE_NAME_LOOKUP
291 #if defined(__INTEL_COMPILER)
292 # if (__INTEL_COMPILER <= 1110) || (__INTEL_COMPILER == 9999) || (defined(_WIN32) && (__INTEL_COMPILER < 1600))
293 # define BOOST_NO_COMPLETE_VALUE_INITIALIZATION
300 #if defined(__GNUC__) && (__GNUC__ >= 4)
301 # define BOOST_SYMBOL_EXPORT __attribute__((visibility("default")))
302 # define BOOST_SYMBOL_IMPORT
303 # define BOOST_SYMBOL_VISIBLE __attribute__((visibility("default")))
312 #if defined(BOOST_INTEL_STDCXX0X)
314 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40600)) && !defined(_MSC_VER)
316 # undef BOOST_NO_CXX11_CONSTEXPR
319 #if (BOOST_INTEL_CXX_VERSION >= 1210) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40600)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
320 # undef BOOST_NO_CXX11_NULLPTR
323 #if (BOOST_INTEL_CXX_VERSION >= 1210) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40700)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
324 # undef BOOST_NO_CXX11_TEMPLATE_ALIASES
328 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40300)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
329 # undef BOOST_NO_CXX11_DECLTYPE
333 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40800)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
334 # undef BOOST_NO_CXX11_DECLTYPE_N3276
338 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40300)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
339 # undef BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
343 #if (BOOST_INTEL_CXX_VERSION >= 1300) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40300)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
345 # undef BOOST_NO_CXX11_RVALUE_REFERENCES
349 #if (BOOST_INTEL_CXX_VERSION >= 1110) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40300)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
350 # undef BOOST_NO_CXX11_STATIC_ASSERT
354 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
355 # undef BOOST_NO_CXX11_VARIADIC_TEMPLATES
359 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40200)) && (!defined(_MSC_VER) || (_MSC_VER >= 1400))
360 # undef BOOST_NO_CXX11_VARIADIC_MACROS
364 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
365 # undef BOOST_NO_CXX11_AUTO_DECLARATIONS
369 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
370 # undef BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
374 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
375 # undef BOOST_NO_CXX11_CHAR16_T
379 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
380 # undef BOOST_NO_CXX11_CHAR32_T
384 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
385 # undef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
389 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
390 # undef BOOST_NO_CXX11_DELETED_FUNCTIONS
394 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))
395 # undef BOOST_NO_CXX11_HDR_INITIALIZER_LIST
399 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40501)) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))
401 # undef BOOST_NO_CXX11_SCOPED_ENUMS
405 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
406 # undef BOOST_NO_SFINAE_EXPR
410 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
412 # undef BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
416 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500)) && (!defined(_MSC_VER) || (_MSC_VER >= 1600))
417 # undef BOOST_NO_CXX11_LAMBDAS
421 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500))
422 # undef BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
426 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40600)) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))
427 # undef BOOST_NO_CXX11_RANGE_BASED_FOR
431 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
432 # undef BOOST_NO_CXX11_RAW_LITERALS
436 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40500)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
437 # undef BOOST_NO_CXX11_UNICODE_LITERALS
441 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40600)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
444 # undef BOOST_NO_CXX11_NOEXCEPT
448 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40600)) && (!defined(_MSC_VER) || (_MSC_VER >= 9999))
449 # undef BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
453 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40700)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 190021730))
454 # undef BOOST_NO_CXX11_USER_DEFINED_LITERALS
458 #if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40800)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 190021730))
459 # undef BOOST_NO_CXX11_ALIGNAS
463 #if (BOOST_INTEL_CXX_VERSION >= 1200) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 180020827))
464 # undef BOOST_NO_CXX11_TRAILING_RESULT_TYPES
468 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40400)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 190021730))
469 # undef BOOST_NO_CXX11_INLINE_NAMESPACES
473 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40800)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 190021730))
474 # undef BOOST_NO_CXX11_REF_QUALIFIERS
478 #if (BOOST_INTEL_CXX_VERSION >= 1400) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40700)) && (!defined(_MSC_VER) || (_MSC_VER >= 1700))
479 # undef BOOST_NO_CXX11_FINAL
486 #define BOOST_NO_CXX11_FIXED_LENGTH_VARIADIC_TEMPLATE_EXPANSION_PACKS
488 #if defined(BOOST_INTEL_STDCXX0X) && (BOOST_INTEL_CXX_VERSION <= 1310)
489 # define BOOST_NO_CXX11_HDR_FUTURE
490 # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
493 #if defined(BOOST_INTEL_STDCXX0X) && (BOOST_INTEL_CXX_VERSION == 1400)
495 # define BOOST_NO_CXX11_HDR_FUTURE
496 # define BOOST_NO_CXX11_HDR_TUPLE
499 #if (BOOST_INTEL_CXX_VERSION < 1200)
503 # define BOOST_NO_FENV_H
509 #if (BOOST_INTEL_CXX_VERSION <= 1310)
510 # define BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS
513 #if defined(_MSC_VER) && (_MSC_VER >= 1600)
514 # define BOOST_HAS_STDINT_H
517 #if defined(__CUDACC__)
518 # if defined(BOOST_GCC_CXX11)
519 # define BOOST_NVCC_CXX11
521 # define BOOST_NVCC_CXX03
525 #if defined(__LP64__) && defined(__GNUC__) && (BOOST_INTEL_CXX_VERSION >= 1310) && !defined(BOOST_NVCC_CXX03)
526 # define BOOST_HAS_INT128
532 #if (BOOST_INTEL_CXX_VERSION > 1500)
533 # if defined(BOOST_ASSERT_CONFIG)
534 # error "Unknown compiler version - please run the configure tests and report the results"
535 # elif defined(_MSC_VER)