intel.hpp 22 KB

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