From 6bc9fb5852883a8adcfd9708cb5ecb4e1c0bee2c Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Fri, 7 Jul 2017 14:36:45 +0200 Subject: [PATCH] Add hack in config.h for boost detection of CXX11 features with ICC --- Installation/include/CGAL/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Installation/include/CGAL/config.h b/Installation/include/CGAL/config.h index 4cb703dfaa2..0f5470a545d 100644 --- a/Installation/include/CGAL/config.h +++ b/Installation/include/CGAL/config.h @@ -117,10 +117,18 @@ # define BOOST_NO_CXX11_VARIADIC_TEMPLATES #endif + // workaround for the bug https://svn.boost.org/trac10/ticket/12534 // That bug was introduced in Boost 1.62 and fixed in 1.63. #if BOOST_VERSION >= 106200 && BOOSTS_VERSION < 106300 # include +#endif======= + +// Hack: boost does not detect correctly the cxx11 features of ICC +// We declare by hand two features that we need (variadic templates and rvalue references) +#ifdef __INTEL_COMPILER +# undef BOOST_NO_CXX11_VARIADIC_TEMPLATES +# undef BOOST_NO_CXX11_RVALUE_REFERENCES #endif #include