1
0
forked from boostorg/core

Compare commits

...

1 Commits

Author SHA1 Message Date
jzmaddock
06efc5bbb5 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.
2018-12-30 18:29:54 +00:00

View File

@@ -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