tentative fixes for clang failures.

This commit is contained in:
jzmaddock
2019-06-18 18:42:30 +01:00
parent 1cf54521a5
commit 0bb4a11787
3 changed files with 4 additions and 2 deletions

View File

@ -257,8 +257,10 @@
#endif #endif
#if !__has_feature(__cxx_decltype_auto__) #if !__has_feature(__cxx_decltype_auto__)
#if (__clang_major__ > 3)
# define BOOST_NO_CXX14_DECLTYPE_AUTO # define BOOST_NO_CXX14_DECLTYPE_AUTO
#endif #endif
#endif
#if !__has_feature(__cxx_aggregate_nsdmi__) #if !__has_feature(__cxx_aggregate_nsdmi__)
# define BOOST_NO_CXX14_AGGREGATE_NSDMI # define BOOST_NO_CXX14_AGGREGATE_NSDMI

View File

@ -106,7 +106,7 @@
#define BOOST_NO_CXX17_ITERATOR_TRAITS #define BOOST_NO_CXX17_ITERATOR_TRAITS
#define BOOST_NO_CXX17_STD_INVOKE // Invoke support is incomplete (no invoke_result) #define BOOST_NO_CXX17_STD_INVOKE // Invoke support is incomplete (no invoke_result)
#if (_LIBCPP_VERSION <= 1101) && !defined(BOOST_NO_CXX11_THREAD_LOCAL) #if ((_LIBCPP_VERSION <= 1101) || (_LIBCPP_VERSION == 7000)) && !defined(BOOST_NO_CXX11_THREAD_LOCAL)
// This is a bit of a sledgehammer, because really it's just libc++abi that has no // This is a bit of a sledgehammer, because really it's just libc++abi that has no
// support for thread_local, leading to linker errors such as // support for thread_local, leading to linker errors such as
// "undefined reference to `__cxa_thread_atexit'". It is fixed in the // "undefined reference to `__cxa_thread_atexit'". It is fixed in the

View File

@ -17,7 +17,7 @@ void quiet_warning(const CharT*){}
int test() int test()
{ {
#ifdef _<EFBFBD>_<EFBFBD>cpp_<EFBFBD>char8_<EFBFBD>t #ifdef __cpp_char8_type
// The change to char8_t in C++20 is a breaking change to the std: // The change to char8_t in C++20 is a breaking change to the std:
const char8_t* c8 = u8""; const char8_t* c8 = u8"";
#else #else