From 6f0c359a4e2e5fcfad4cf9af9524b53122fdb494 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 11 Dec 2016 16:45:12 +0400 Subject: [PATCH] Disable C++14 constexpr for Intel compiler Intel compiler up to version 17.0 (on Linux) makes constexpr member functions implicitly const-qualified. --- include/boost/config/compiler/intel.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/config/compiler/intel.hpp b/include/boost/config/compiler/intel.hpp index 80969e9e..fad1a5aa 100644 --- a/include/boost/config/compiler/intel.hpp +++ b/include/boost/config/compiler/intel.hpp @@ -496,6 +496,11 @@ template<> struct assert_intrinsic_wchar_t {}; # define BOOST_NO_CXX11_HDR_TUPLE #endif +// Broken in all versions up to 17: +#if !defined(BOOST_NO_CXX14_CONSTEXPR) +#define BOOST_NO_CXX14_CONSTEXPR +#endif + #if (BOOST_INTEL_CXX_VERSION < 1200) // // fenv.h appears not to work with Intel prior to 12.0: