intel.hpp
Go to the documentation of this file.
00001 //  (C) Copyright John Maddock 2001-8.
00002 //  (C) Copyright Peter Dimov 2001.
00003 //  (C) Copyright Jens Maurer 2001.
00004 //  (C) Copyright David Abrahams 2002 - 2003.
00005 //  (C) Copyright Aleksey Gurtovoy 2002 - 2003.
00006 //  (C) Copyright Guillaume Melquiond 2002 - 2003.
00007 //  (C) Copyright Beman Dawes 2003.
00008 //  (C) Copyright Martin Wille 2003.
00009 //  Use, modification and distribution are subject to the
00010 //  Boost Software License, Version 1.0. (See accompanying file
00011 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00012 
00013 //  See http://www.boost.org for most recent version.
00014 
00015 //  Intel compiler setup:
00016 
00017 #include "boost/config/compiler/common_edg.hpp"
00018 
00019 #if defined(__INTEL_COMPILER)
00020 #  define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER
00021 #elif defined(__ICL)
00022 #  define BOOST_INTEL_CXX_VERSION __ICL
00023 #elif defined(__ICC)
00024 #  define BOOST_INTEL_CXX_VERSION __ICC
00025 #elif defined(__ECC)
00026 #  define BOOST_INTEL_CXX_VERSION __ECC
00027 #endif
00028 
00029 #define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
00030 #define BOOST_INTEL BOOST_INTEL_CXX_VERSION
00031 
00032 #if defined(_WIN32) || defined(_WIN64)
00033 #  define BOOST_INTEL_WIN BOOST_INTEL
00034 #else
00035 #  define BOOST_INTEL_LINUX BOOST_INTEL
00036 #endif
00037 
00038 #if (BOOST_INTEL_CXX_VERSION <= 500) && defined(_MSC_VER)
00039 #  define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
00040 #  define BOOST_NO_TEMPLATE_TEMPLATES
00041 #endif
00042 
00043 #if (BOOST_INTEL_CXX_VERSION <= 600)
00044 
00045 #  if defined(_MSC_VER) && (_MSC_VER <= 1300) // added check for <= VC 7 (Peter Dimov)
00046 
00047 // Boost libraries assume strong standard conformance unless otherwise
00048 // indicated by a config macro. As configured by Intel, the EDG front-end
00049 // requires certain compiler options be set to achieve that strong conformance.
00050 // Particularly /Qoption,c,--arg_dep_lookup (reported by Kirk Klobe & Thomas Witt)
00051 // and /Zc:wchar_t,forScope. See boost-root/tools/build/intel-win32-tools.jam for
00052 // details as they apply to particular versions of the compiler. When the
00053 // compiler does not predefine a macro indicating if an option has been set,
00054 // this config file simply assumes the option has been set.
00055 // Thus BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP will not be defined, even if
00056 // the compiler option is not enabled.
00057 
00058 #     define BOOST_NO_SWPRINTF
00059 #  endif
00060 
00061 // Void returns, 64 bit integrals don't work when emulating VC 6 (Peter Dimov)
00062 
00063 #  if defined(_MSC_VER) && (_MSC_VER <= 1200)
00064 #     define BOOST_NO_VOID_RETURNS
00065 #     define BOOST_NO_INTEGRAL_INT64_T
00066 #  endif
00067 
00068 #endif
00069 
00070 #if (BOOST_INTEL_CXX_VERSION <= 710) && defined(_WIN32)
00071 #  define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
00072 #endif
00073 
00074 // See http://aspn.activestate.com/ASPN/Mail/Message/boost/1614864
00075 #if BOOST_INTEL_CXX_VERSION < 600
00076 #  define BOOST_NO_INTRINSIC_WCHAR_T
00077 #else
00078 // We should test the macro _WCHAR_T_DEFINED to check if the compiler
00079 // supports wchar_t natively. *BUT* there is a problem here: the standard
00080 // headers define this macro if they typedef wchar_t. Anyway, we're lucky
00081 // because they define it without a value, while Intel C++ defines it
00082 // to 1. So we can check its value to see if the macro was defined natively
00083 // or not.
00084 // Under UNIX, the situation is exactly the same, but the macro _WCHAR_T
00085 // is used instead.
00086 #  if ((_WCHAR_T_DEFINED + 0) == 0) && ((_WCHAR_T + 0) == 0)
00087 #    define BOOST_NO_INTRINSIC_WCHAR_T
00088 #  endif
00089 #endif
00090 
00091 #if defined(__GNUC__) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
00092 //
00093 // Figure out when Intel is emulating this gcc bug
00094 // (All Intel versions prior to 9.0.26, and versions
00095 // later than that if they are set up to emulate gcc 3.2
00096 // or earlier):
00097 //
00098 #  if ((__GNUC__ == 3) && (__GNUC_MINOR__ <= 2)) || (BOOST_INTEL < 900) || (__INTEL_COMPILER_BUILD_DATE < 20050912)
00099 #     define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
00100 #  endif
00101 #endif
00102 #if (defined(__GNUC__) && (__GNUC__ < 4)) || defined(_WIN32) || (BOOST_INTEL_CXX_VERSION <= 1100)
00103 // GCC or VC emulation:
00104 #define BOOST_NO_TWO_PHASE_NAME_LOOKUP
00105 #endif
00106 //
00107 // Verify that we have actually got BOOST_NO_INTRINSIC_WCHAR_T
00108 // set correctly, if we don't do this now, we will get errors later
00109 // in type_traits code among other things, getting this correct
00110 // for the Intel compiler is actually remarkably fragile and tricky:
00111 //
00112 #if defined(BOOST_NO_INTRINSIC_WCHAR_T)
00113 #include <cwchar>
00114 template< typename T > struct assert_no_intrinsic_wchar_t;
00115 template<> struct assert_no_intrinsic_wchar_t<wchar_t> { typedef void type; };
00116 // if you see an error here then you need to unset BOOST_NO_INTRINSIC_WCHAR_T
00117 // where it is defined above:
00118 typedef assert_no_intrinsic_wchar_t<unsigned short>::type assert_no_intrinsic_wchar_t_;
00119 #else
00120 template< typename T > struct assert_intrinsic_wchar_t;
00121 template<> struct assert_intrinsic_wchar_t<wchar_t> {};
00122 // if you see an error here then define BOOST_NO_INTRINSIC_WCHAR_T on the command line:
00123 template<> struct assert_intrinsic_wchar_t<unsigned short> {};
00124 #endif
00125 
00126 #if _MSC_VER+0 >= 1000
00127 #  if _MSC_VER >= 1200
00128 #     define BOOST_HAS_MS_INT64
00129 #  endif
00130 #  define BOOST_NO_SWPRINTF
00131 #  define BOOST_NO_TWO_PHASE_NAME_LOOKUP
00132 #elif defined(_WIN32)
00133 #  define BOOST_DISABLE_WIN32
00134 #endif
00135 
00136 // I checked version 6.0 build 020312Z, it implements the NRVO.
00137 // Correct this as you find out which version of the compiler
00138 // implemented the NRVO first.  (Daniel Frey)
00139 #if (BOOST_INTEL_CXX_VERSION >= 600)
00140 #  define BOOST_HAS_NRVO
00141 #endif
00142 
00143 //
00144 // versions check:
00145 // we don't support Intel prior to version 5.0:
00146 #if BOOST_INTEL_CXX_VERSION < 500
00147 #  error "Compiler not supported or configured - please reconfigure"
00148 #endif
00149 
00150 // Intel on MacOS requires
00151 #if defined(__APPLE__) && defined(__INTEL_COMPILER)
00152 #  define BOOST_NO_TWO_PHASE_NAME_LOOKUP
00153 #endif
00154 
00155 // Intel on Altix Itanium
00156 #if defined(__itanium__) && defined(__INTEL_COMPILER)
00157 #  define BOOST_NO_TWO_PHASE_NAME_LOOKUP
00158 #endif
00159 
00160 //
00161 // C++0x features
00162 //
00163 //   See boost\config\suffix.hpp for BOOST_NO_LONG_LONG
00164 //
00165 #define BOOST_NO_CHAR16_T
00166 #define BOOST_NO_CHAR32_T
00167 #define BOOST_NO_CONSTEXPR
00168 #define BOOST_NO_DECLTYPE
00169 #define BOOST_NO_DEFAULTED_FUNCTIONS
00170 #define BOOST_NO_DELETED_FUNCTIONS
00171 #define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
00172 #define BOOST_NO_EXTERN_TEMPLATE
00173 #define BOOST_NO_RAW_LITERALS
00174 #define BOOST_NO_RVALUE_REFERENCES
00175 #define BOOST_NO_SCOPED_ENUMS
00176 #define BOOST_NO_STATIC_ASSERT
00177 #define BOOST_NO_UNICODE_LITERALS
00178 #define BOOST_NO_VARIADIC_TEMPLATES
00179 #define BOOST_NO_AUTO_DECLARATIONS
00180 #define BOOST_NO_AUTO_MULTIDECLARATIONS
00181 
00182 //
00183 // last known and checked version:
00184 #if (BOOST_INTEL_CXX_VERSION > 1100)
00185 #  if defined(BOOST_ASSERT_CONFIG)
00186 #     error "Unknown compiler version - please run the configure tests and report the results"
00187 #  elif defined(_MSC_VER)
00188 //
00189 //      We don't emit this warning any more, since we have so few
00190 //      defect macros set anyway (just the one).
00191 //
00192 //#     pragma message("Unknown compiler version - please run the configure tests and report the results")
00193 #  endif
00194 #endif
00195 


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:29