Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -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 | |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 17 | #include "ndnboost/config/compiler/common_edg.hpp" |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 18 | |
| 19 | #if defined(__INTEL_COMPILER) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 20 | # define NDNBOOST_INTEL_CXX_VERSION __INTEL_COMPILER |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 21 | #elif defined(__ICL) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 22 | # define NDNBOOST_INTEL_CXX_VERSION __ICL |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 23 | #elif defined(__ICC) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 24 | # define NDNBOOST_INTEL_CXX_VERSION __ICC |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 25 | #elif defined(__ECC) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 26 | # define NDNBOOST_INTEL_CXX_VERSION __ECC |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 27 | #endif |
| 28 | |
| 29 | // Flags determined by comparing output of 'icpc -dM -E' with and without '-std=c++0x' |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 30 | #if (!(defined(_WIN32) || defined(_WIN64)) && defined(__STDC_HOSTED__) && (__STDC_HOSTED__ && (NDNBOOST_INTEL_CXX_VERSION <= 1200))) || defined(__GXX_EXPERIMENTAL_CPP0X__) |
| 31 | # define NDNBOOST_INTEL_STDCXX0X |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 32 | #endif |
| 33 | #if defined(_MSC_VER) && (_MSC_VER >= 1600) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 34 | # define NDNBOOST_INTEL_STDCXX0X |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 35 | #endif |
| 36 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 37 | #ifdef NDNBOOST_INTEL_STDCXX0X |
| 38 | #define NDNBOOST_COMPILER "Intel C++ C++0x mode version " NDNBOOST_STRINGIZE(NDNBOOST_INTEL_CXX_VERSION) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 39 | #else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 40 | #define NDNBOOST_COMPILER "Intel C++ version " NDNBOOST_STRINGIZE(NDNBOOST_INTEL_CXX_VERSION) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 41 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 42 | #define NDNBOOST_INTEL NDNBOOST_INTEL_CXX_VERSION |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 43 | |
| 44 | #if defined(_WIN32) || defined(_WIN64) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 45 | # define NDNBOOST_INTEL_WIN NDNBOOST_INTEL |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 46 | #else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 47 | # define NDNBOOST_INTEL_LINUX NDNBOOST_INTEL |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 48 | #endif |
| 49 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 50 | #if (NDNBOOST_INTEL_CXX_VERSION <= 500) && defined(_MSC_VER) |
| 51 | # define NDNBOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS |
| 52 | # define NDNBOOST_NO_TEMPLATE_TEMPLATES |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 53 | #endif |
| 54 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 55 | #if (NDNBOOST_INTEL_CXX_VERSION <= 600) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 56 | |
| 57 | # if defined(_MSC_VER) && (_MSC_VER <= 1300) // added check for <= VC 7 (Peter Dimov) |
| 58 | |
| 59 | // Boost libraries assume strong standard conformance unless otherwise |
| 60 | // indicated by a config macro. As configured by Intel, the EDG front-end |
| 61 | // requires certain compiler options be set to achieve that strong conformance. |
| 62 | // Particularly /Qoption,c,--arg_dep_lookup (reported by Kirk Klobe & Thomas Witt) |
| 63 | // and /Zc:wchar_t,forScope. See boost-root/tools/build/intel-win32-tools.jam for |
| 64 | // details as they apply to particular versions of the compiler. When the |
| 65 | // compiler does not predefine a macro indicating if an option has been set, |
| 66 | // this config file simply assumes the option has been set. |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 67 | // Thus NDNBOOST_NO_ARGUMENT_DEPENDENT_LOOKUP will not be defined, even if |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 68 | // the compiler option is not enabled. |
| 69 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 70 | # define NDNBOOST_NO_SWPRINTF |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 71 | # endif |
| 72 | |
| 73 | // Void returns, 64 bit integrals don't work when emulating VC 6 (Peter Dimov) |
| 74 | |
| 75 | # if defined(_MSC_VER) && (_MSC_VER <= 1200) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 76 | # define NDNBOOST_NO_VOID_RETURNS |
| 77 | # define NDNBOOST_NO_INTEGRAL_INT64_T |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 78 | # endif |
| 79 | |
| 80 | #endif |
| 81 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 82 | #if (NDNBOOST_INTEL_CXX_VERSION <= 710) && defined(_WIN32) |
| 83 | # define NDNBOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 84 | #endif |
| 85 | |
| 86 | // See http://aspn.activestate.com/ASPN/Mail/Message/boost/1614864 |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 87 | #if NDNBOOST_INTEL_CXX_VERSION < 600 |
| 88 | # define NDNBOOST_NO_INTRINSIC_WCHAR_T |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 89 | #else |
| 90 | // We should test the macro _WCHAR_T_DEFINED to check if the compiler |
| 91 | // supports wchar_t natively. *BUT* there is a problem here: the standard |
| 92 | // headers define this macro if they typedef wchar_t. Anyway, we're lucky |
| 93 | // because they define it without a value, while Intel C++ defines it |
| 94 | // to 1. So we can check its value to see if the macro was defined natively |
| 95 | // or not. |
| 96 | // Under UNIX, the situation is exactly the same, but the macro _WCHAR_T |
| 97 | // is used instead. |
| 98 | # if ((_WCHAR_T_DEFINED + 0) == 0) && ((_WCHAR_T + 0) == 0) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 99 | # define NDNBOOST_NO_INTRINSIC_WCHAR_T |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 100 | # endif |
| 101 | #endif |
| 102 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 103 | #if defined(__GNUC__) && !defined(NDNBOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 104 | // |
| 105 | // Figure out when Intel is emulating this gcc bug |
| 106 | // (All Intel versions prior to 9.0.26, and versions |
| 107 | // later than that if they are set up to emulate gcc 3.2 |
| 108 | // or earlier): |
| 109 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 110 | # if ((__GNUC__ == 3) && (__GNUC_MINOR__ <= 2)) || (NDNBOOST_INTEL < 900) || (__INTEL_COMPILER_BUILD_DATE < 20050912) |
| 111 | # define NDNBOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 112 | # endif |
| 113 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 114 | #if (defined(__GNUC__) && (__GNUC__ < 4)) || defined(_WIN32) || (NDNBOOST_INTEL_CXX_VERSION <= 1200) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 115 | // GCC or VC emulation: |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 116 | #define NDNBOOST_NO_TWO_PHASE_NAME_LOOKUP |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 117 | #endif |
| 118 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 119 | // Verify that we have actually got NDNBOOST_NO_INTRINSIC_WCHAR_T |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 120 | // set correctly, if we don't do this now, we will get errors later |
| 121 | // in type_traits code among other things, getting this correct |
| 122 | // for the Intel compiler is actually remarkably fragile and tricky: |
| 123 | // |
| 124 | #ifdef __cplusplus |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 125 | #if defined(NDNBOOST_NO_INTRINSIC_WCHAR_T) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 126 | #include <cwchar> |
| 127 | template< typename T > struct assert_no_intrinsic_wchar_t; |
| 128 | template<> struct assert_no_intrinsic_wchar_t<wchar_t> { typedef void type; }; |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 129 | // if you see an error here then you need to unset NDNBOOST_NO_INTRINSIC_WCHAR_T |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 130 | // where it is defined above: |
| 131 | typedef assert_no_intrinsic_wchar_t<unsigned short>::type assert_no_intrinsic_wchar_t_; |
| 132 | #else |
| 133 | template< typename T > struct assert_intrinsic_wchar_t; |
| 134 | template<> struct assert_intrinsic_wchar_t<wchar_t> {}; |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 135 | // if you see an error here then define NDNBOOST_NO_INTRINSIC_WCHAR_T on the command line: |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 136 | template<> struct assert_intrinsic_wchar_t<unsigned short> {}; |
| 137 | #endif |
| 138 | #endif |
| 139 | |
| 140 | #if defined(_MSC_VER) && (_MSC_VER+0 >= 1000) |
| 141 | # if _MSC_VER >= 1200 |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 142 | # define NDNBOOST_HAS_MS_INT64 |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 143 | # endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 144 | # define NDNBOOST_NO_SWPRINTF |
| 145 | # define NDNBOOST_NO_TWO_PHASE_NAME_LOOKUP |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 146 | #elif defined(_WIN32) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 147 | # define NDNBOOST_DISABLE_WIN32 |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 148 | #endif |
| 149 | |
| 150 | // I checked version 6.0 build 020312Z, it implements the NRVO. |
| 151 | // Correct this as you find out which version of the compiler |
| 152 | // implemented the NRVO first. (Daniel Frey) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 153 | #if (NDNBOOST_INTEL_CXX_VERSION >= 600) |
| 154 | # define NDNBOOST_HAS_NRVO |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 155 | #endif |
| 156 | |
| 157 | // |
| 158 | // versions check: |
| 159 | // we don't support Intel prior to version 5.0: |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 160 | #if NDNBOOST_INTEL_CXX_VERSION < 500 |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 161 | # error "Compiler not supported or configured - please reconfigure" |
| 162 | #endif |
| 163 | |
| 164 | // Intel on MacOS requires |
| 165 | #if defined(__APPLE__) && defined(__INTEL_COMPILER) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 166 | # define NDNBOOST_NO_TWO_PHASE_NAME_LOOKUP |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 167 | #endif |
| 168 | |
| 169 | // Intel on Altix Itanium |
| 170 | #if defined(__itanium__) && defined(__INTEL_COMPILER) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 171 | # define NDNBOOST_NO_TWO_PHASE_NAME_LOOKUP |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 172 | #endif |
| 173 | |
| 174 | // |
| 175 | // An attempt to value-initialize a pointer-to-member may trigger an |
| 176 | // internal error on Intel <= 11.1 (last checked version), as was |
| 177 | // reported by John Maddock, Intel support issue 589832, May 2010. |
| 178 | // Moreover, according to test results from Huang-Vista-x86_32_intel, |
| 179 | // intel-vc9-win-11.1 may leave a non-POD array uninitialized, in some |
| 180 | // cases when it should be value-initialized. |
| 181 | // (Niels Dekker, LKEB, May 2010) |
| 182 | // Apparently Intel 12.1 (compiler version number 9999 !!) has the same issue (compiler regression). |
| 183 | #if defined(__INTEL_COMPILER) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 184 | # if (__INTEL_COMPILER <= 1110) || (__INTEL_COMPILER == 9999) || (defined(_WIN32) && (__INTEL_COMPILER < 1500)) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 185 | # define NDNBOOST_NO_COMPLETE_VALUE_INITIALIZATION |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 186 | # endif |
| 187 | #endif |
| 188 | |
| 189 | // |
| 190 | // Dynamic shared object (DSO) and dynamic-link library (DLL) support |
| 191 | // |
| 192 | #if defined(__GNUC__) && (__GNUC__ >= 4) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 193 | # define NDNBOOST_SYMBOL_EXPORT __attribute__((visibility("default"))) |
| 194 | # define NDNBOOST_SYMBOL_IMPORT |
| 195 | # define NDNBOOST_SYMBOL_VISIBLE __attribute__((visibility("default"))) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 196 | #endif |
| 197 | // |
| 198 | // C++0x features |
| 199 | // - ICC added static_assert in 11.0 (first version with C++0x support) |
| 200 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 201 | #if defined(NDNBOOST_INTEL_STDCXX0X) |
| 202 | # undef NDNBOOST_NO_CXX11_STATIC_ASSERT |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 203 | // |
| 204 | // These pass our test cases, but aren't officially supported according to: |
| 205 | // http://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler/ |
| 206 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 207 | //# undef NDNBOOST_NO_CXX11_LAMBDAS |
| 208 | //# undef NDNBOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS |
| 209 | //# undef NDNBOOST_NO_CXX11_DECLTYPE |
| 210 | //# undef NDNBOOST_NO_CXX11_AUTO_DECLARATIONS |
| 211 | //# undef NDNBOOST_NO_CXX11_AUTO_MULTIDECLARATIONS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 212 | #endif |
| 213 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 214 | #if defined(NDNBOOST_INTEL_STDCXX0X) && (NDNBOOST_INTEL_CXX_VERSION >= 1200) |
| 215 | //# undef NDNBOOST_NO_CXX11_RVALUE_REFERENCES // Enabling this breaks Filesystem and Exception libraries |
| 216 | //# undef NDNBOOST_NO_CXX11_SCOPED_ENUMS // doesn't really work!! |
| 217 | # undef NDNBOOST_NO_CXX11_DELETED_FUNCTIONS |
| 218 | # undef NDNBOOST_NO_CXX11_DEFAULTED_FUNCTIONS |
| 219 | # undef NDNBOOST_NO_CXX11_LAMBDAS |
| 220 | # undef NDNBOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS |
| 221 | # undef NDNBOOST_NO_CXX11_DECLTYPE |
| 222 | # undef NDNBOOST_NO_CXX11_AUTO_DECLARATIONS |
| 223 | # undef NDNBOOST_NO_CXX11_AUTO_MULTIDECLARATIONS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 224 | #endif |
| 225 | |
| 226 | // icl Version 12.1.0.233 Build 20110811 and possibly some other builds |
| 227 | // had an incorrect __INTEL_COMPILER value of 9999. Intel say this has been fixed. |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 228 | #if defined(NDNBOOST_INTEL_STDCXX0X) && (NDNBOOST_INTEL_CXX_VERSION > 1200) |
| 229 | # undef NDNBOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS |
| 230 | # undef NDNBOOST_NO_CXX11_NULLPTR |
| 231 | # undef NDNBOOST_NO_CXX11_RVALUE_REFERENCES |
| 232 | # undef NDNBOOST_NO_SFINAE_EXPR |
| 233 | # undef NDNBOOST_NO_CXX11_TEMPLATE_ALIASES |
| 234 | # undef NDNBOOST_NO_CXX11_VARIADIC_TEMPLATES |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 235 | |
| 236 | // http://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler/ |
| 237 | // continues to list scoped enum support as "Partial" |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 238 | //# undef NDNBOOST_NO_CXX11_SCOPED_ENUMS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 239 | #endif |
| 240 | |
| 241 | #if defined(_MSC_VER) && (_MSC_VER <= 1700) |
| 242 | // |
| 243 | // Although the Intel compiler is capable of supporting these, it appears not to in MSVC compatibility mode: |
| 244 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 245 | # define NDNBOOST_NO_CXX11_HDR_INITIALIZER_LIST |
| 246 | # define NDNBOOST_NO_CXX11_VARIADIC_TEMPLATES |
| 247 | # define NDNBOOST_NO_CXX11_DELETED_FUNCTIONS |
| 248 | # define NDNBOOST_NO_CXX11_DEFAULTED_FUNCTIONS |
| 249 | # define NDNBOOST_NO_CXX11_TEMPLATE_ALIASES |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 250 | #endif |
| 251 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 252 | #if (NDNBOOST_INTEL_CXX_VERSION < 1200) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 253 | // |
| 254 | // fenv.h appears not to work with Intel prior to 12.0: |
| 255 | // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 256 | # define NDNBOOST_NO_FENV_H |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 257 | #endif |
| 258 | |
| 259 | // |
| 260 | // last known and checked version: |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 261 | #if (NDNBOOST_INTEL_CXX_VERSION > 1200) |
| 262 | # if defined(NDNBOOST_ASSERT_CONFIG) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 263 | # error "Unknown compiler version - please run the configure tests and report the results" |
| 264 | # elif defined(_MSC_VER) |
| 265 | // |
| 266 | // We don't emit this warning any more, since we have so few |
| 267 | // defect macros set anyway (just the one). |
| 268 | // |
| 269 | //# pragma message("Unknown compiler version - please run the configure tests and report the results") |
| 270 | # endif |
| 271 | #endif |
| 272 | |