mirror of
https://github.com/boostorg/core.git
synced 2025-08-01 05:44:35 +02:00
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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user