intel.hpp 22 KB

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