When using clang + libstdC++ not all C++11 features are necessarily available

This commit is contained in:
John Maddock
2017-05-19 13:38:02 +01:00
parent 0b508cb2c9
commit 6d7592091c

View File

@ -148,6 +148,19 @@
// defining it here is a terrible cludge, but should get things working: // defining it here is a terrible cludge, but should get things working:
extern "C" char *gets (char *__s); extern "C" char *gets (char *__s);
#endif #endif
//
// clang is unable to parse some GCC headers, add those workarounds here:
//
#if BOOST_LIBSTDCXX_VERSION < 50000
# define BOOST_NO_CXX11_HDR_REGEX
#endif
//
// GCC 4.7.x has no __cxa_thread_atexit which
// thread_local objects require for cleanup:
//
#if BOOST_LIBSTDCXX_VERSION < 40800
# define BOOST_NO_CXX11_THREAD_LOCAL
#endif
// //
// GCC 4.8 and 9 add working versions of <atomic> and <regex> respectively. // GCC 4.8 and 9 add working versions of <atomic> and <regex> respectively.