From 2c0d0ed559ba9aca336a60fcaaacbbe3c85b0af6 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Mon, 18 Aug 2014 21:01:37 +0400 Subject: [PATCH 1/2] Define BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS for Intel --- include/boost/config/compiler/intel.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/config/compiler/intel.hpp b/include/boost/config/compiler/intel.hpp index 2f0d9adc..7b03fdc0 100644 --- a/include/boost/config/compiler/intel.hpp +++ b/include/boost/config/compiler/intel.hpp @@ -318,6 +318,13 @@ template<> struct assert_intrinsic_wchar_t {}; # define BOOST_NO_FENV_H #endif +// Intel 13.10 fails to access defaulted functions of a base class declared in private or protected sections, +// producing the following errors: +// error #453: protected function "..." (declared at ...") is not accessible through a "..." pointer or object +#if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) && (BOOST_INTEL_CXX_VERSION <= 1310) +# define BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS +#endif + #if defined(_MSC_VER) && (_MSC_VER >= 1600) # define BOOST_HAS_STDINT_H #endif From 2abc4830557a3e79ec4425328b88bd38be6555a3 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Fri, 22 Aug 2014 19:01:53 +0400 Subject: [PATCH 2/2] Define BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS even if BOOST_NO_CXX11_DEFAULTED_FUNCTIONS are not defined --- include/boost/config/compiler/intel.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/config/compiler/intel.hpp b/include/boost/config/compiler/intel.hpp index 7b03fdc0..8102784d 100644 --- a/include/boost/config/compiler/intel.hpp +++ b/include/boost/config/compiler/intel.hpp @@ -321,7 +321,7 @@ template<> struct assert_intrinsic_wchar_t {}; // Intel 13.10 fails to access defaulted functions of a base class declared in private or protected sections, // producing the following errors: // error #453: protected function "..." (declared at ...") is not accessible through a "..." pointer or object -#if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) && (BOOST_INTEL_CXX_VERSION <= 1310) +#if (BOOST_INTEL_CXX_VERSION <= 1310) # define BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS #endif