From 06efc5bbb58fe4064d952460b3966baf4791adfc Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sun, 30 Dec 2018 18:29:54 +0000 Subject: [PATCH] Apply workaround for Intel-16 Without this I see: ``` /boost/core/noncopyable.hpp(42): error: defaulted default constructor cannot be constexpr because the corresponding implicitly declared default constructor would not be constexpr BOOST_CONSTEXPR noncopyable() = default; ``` See: https://travis-ci.org/boostorg/type_traits/jobs/4722892817 Not sure if later Intel versions also require this... still working on that. --- include/boost/core/noncopyable.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/core/noncopyable.hpp b/include/boost/core/noncopyable.hpp index 4a4f8ba..c218e72 100644 --- a/include/boost/core/noncopyable.hpp +++ b/include/boost/core/noncopyable.hpp @@ -38,7 +38,8 @@ namespace noncopyable_ // protection from unintended ADL class noncopyable: base_token { protected: -#if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) && !defined(BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS) +#if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) && !defined(BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS)\ + && !BOOST_WORKAROUND(__ICC, <= 1600) BOOST_CONSTEXPR noncopyable() = default; ~noncopyable() = default; #else