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