$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r68420 - trunk/boost/config/compiler
From: john_at_[hidden]
Date: 2011-01-24 13:28:53
Author: johnmaddock
Date: 2011-01-24 13:28:53 EST (Mon, 24 Jan 2011)
New Revision: 68420
URL: http://svn.boost.org/trac/boost/changeset/68420
Log:
Add preliminary C++0x support.
Refs #5112.
Text files modified: 
   trunk/boost/config/compiler/intel.hpp |    32 ++++++++++++++++++++++++++++++++        
   1 files changed, 32 insertions(+), 0 deletions(-)
Modified: trunk/boost/config/compiler/intel.hpp
==============================================================================
--- trunk/boost/config/compiler/intel.hpp	(original)
+++ trunk/boost/config/compiler/intel.hpp	2011-01-24 13:28:53 EST (Mon, 24 Jan 2011)
@@ -26,7 +26,22 @@
 #  define BOOST_INTEL_CXX_VERSION __ECC
 #endif
 
+// Flags determined by comparing output of 'icpc -dM -E' with and without '-std=c++0x'
+#if (BOOST_INTEL_CXX_VERSION >= 1200)
+#  if defined(BOOST_INTEL_LINUX) && defined(__STDC_HOSTED__)
+#    define BOOST_INTEL_STDCXX0X
+#  endif
+#elif (BOOST_INTEL_CXX_VERSION >= 1100)
+#  if defined(__GXX_EXPERIMENTAL_CPP0X__)
+#    define BOOST_INTEL_STDCXX0X
+#  endif
+#endif
+
+#ifdef BOOST_INTEL_STDCXX0X
+#define BOOST_COMPILER "Intel C++ C++0x mode version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
+#else
 #define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
+#endif
 #define BOOST_INTEL BOOST_INTEL_CXX_VERSION
 
 #if defined(_WIN32) || defined(_WIN64)
@@ -179,6 +194,23 @@
 #  define BOOST_SYMBOL_IMPORT
 #  define BOOST_SYMBOL_VISIBLE __attribute__((visibility("default")))
 #endif
+//
+// C++0x features
+//     - ICC added static_assert in 11.0 (first version with C++0x support)
+//
+#if defined(BOOST_INTEL_STDCXX0X)
+#  undef  BOOST_NO_STATIC_ASSERT
+#  define BOOST_HAS_STATIC_ASSERT
+#endif
+//
+//      - decltype and && did not work properly before version 12.0
+//
+#if defined(BOOST_INTEL_STDCXX0X) && (BOOST_INTEL_CXX_VERSION >= 1200)
+#  undef  BOOST_NO_DECLTYPE
+#  undef  BOOST_NO_RVALUE_REFERENCES
+#  define BOOST_HAS_DECLTYPE
+#  define BOOST_HAS_RVALUE_REFS
+#endif
 
 //
 // last known and checked version: