forked from boostorg/config
Apply fix for [[fallthrough]] attribute in Intel C++ compiler.
Fixes: https://github.com/boostorg/config/issues/211.
This commit is contained in:
@ -46,12 +46,17 @@
|
|||||||
#undef BOOST_GCC_VERSION
|
#undef BOOST_GCC_VERSION
|
||||||
#undef BOOST_GCC_CXX11
|
#undef BOOST_GCC_CXX11
|
||||||
#undef BOOST_GCC
|
#undef BOOST_GCC
|
||||||
|
#undef BOOST_FALLTHROUGH
|
||||||
|
|
||||||
// Broken in all versions up to 17 (newer versions not tested)
|
// Broken in all versions up to 17 (newer versions not tested)
|
||||||
#if (__INTEL_COMPILER <= 1700) && !defined(BOOST_NO_CXX14_CONSTEXPR)
|
#if (__INTEL_COMPILER <= 1700) && !defined(BOOST_NO_CXX14_CONSTEXPR)
|
||||||
# define BOOST_NO_CXX14_CONSTEXPR
|
# define BOOST_NO_CXX14_CONSTEXPR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (__INTEL_COMPILER >= 1800) && (__cplusplus >= 201703)
|
||||||
|
# define BOOST_FALLTHROUGH [[fallthrough]]
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // defined(_MSC_VER)
|
#endif // defined(_MSC_VER)
|
||||||
|
|
||||||
#undef BOOST_COMPILER
|
#undef BOOST_COMPILER
|
||||||
|
Reference in New Issue
Block a user