From 4b38c0b73e3b580429dc6cca59b801f16e602a41 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 7 Jan 2013 12:28:34 +0100 Subject: [PATCH] The Intel Compiler has the "bug" CGAL_CFG_NO_STATEMENT_EXPRESSIONS. The Intel Compiler, even when it tries to emulate the GNU/C++ compiler, does not implement the GNU extension "statement expressions". The macro CGAL_CFG_NO_STATEMENT_EXPRESSIONS must be defined with __INTEL_COMPILER is defined. --- Installation/include/CGAL/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Installation/include/CGAL/config.h b/Installation/include/CGAL/config.h index a06c385ce02..2187fa954ac 100644 --- a/Installation/include/CGAL/config.h +++ b/Installation/include/CGAL/config.h @@ -115,7 +115,7 @@ #define CGAL_CFG_NO_TR1_ARRAY 1 // never use TR1 #define CGAL_CFG_NO_TR1_TUPLE 1 -#if !defined(__GNUC__) +#if !defined(__GNUC__) || defined(__INTEL_COMPILER) #define CGAL_CFG_NO_STATEMENT_EXPRESSIONS 1 #endif #if defined(BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX) || (BOOST_VERSION < 105100)