[Rcpp-commits] r2911 - pkg/Rcpp/inst/include

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Feb 23 21:58:36 CET 2011


Author: edd
Date: 2011-02-23 21:58:36 +0100 (Wed, 23 Feb 2011)
New Revision: 2911

Modified:
   pkg/Rcpp/inst/include/RcppCommon.h
Log:
Intel Compiler 12.0 configuration


Modified: pkg/Rcpp/inst/include/RcppCommon.h
===================================================================
--- pkg/Rcpp/inst/include/RcppCommon.h	2011-02-23 20:57:57 UTC (rev 2910)
+++ pkg/Rcpp/inst/include/RcppCommon.h	2011-02-23 20:58:36 UTC (rev 2911)
@@ -33,6 +33,9 @@
 #ifdef __clang__
 #define GOOD_COMPILER_FOR_RCPP
 #endif
+#ifdef __INTEL_COMPILER
+#define GOOD_COMPILER_FOR_RCPP
+#endif
 
 #ifndef GOOD_COMPILER_FOR_RCPP
 # error "This compiler is not supported"
@@ -85,6 +88,17 @@
     #endif
 #endif
 
+#ifdef __INTEL_COMPILER
+    // This is based on an email by Alexey Stukalov who tested 
+    // Intel Compiler 12.0 and states that is does support Cxx0x 
+    // or even TR1 (by default; maybe there are options?)
+    #undef HAS_VARIADIC_TEMPLATES
+    #undef HAS_TR1
+    #undef HAS_TR1_UNORDERED_MAP
+    #undef HAS_TR1_UNORDERED_SET
+#endif
+
+
 #include <iterator>
 #include <exception>
 #include <iostream>



More information about the Rcpp-commits mailing list