forked from boostorg/config
Tentative fix for GCC 5.1 C++11 feature updates.
This commit is contained in:
@ -123,7 +123,7 @@
|
|||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
|
|
||||||
#if __has_include(<experimental/any>)
|
#if __has_include(<experimental/any>)
|
||||||
# define BOOST_LIBSTDCXX_VERSION 50000
|
# define BOOST_LIBSTDCXX_VERSION 50100
|
||||||
#elif __has_include(<shared_mutex>)
|
#elif __has_include(<shared_mutex>)
|
||||||
# define BOOST_LIBSTDCXX_VERSION 40900
|
# define BOOST_LIBSTDCXX_VERSION 40900
|
||||||
#elif __has_include(<ext/cmath>)
|
#elif __has_include(<ext/cmath>)
|
||||||
@ -213,6 +213,8 @@
|
|||||||
# define BOOST_NO_CXX11_HDR_ATOMIC
|
# define BOOST_NO_CXX11_HDR_ATOMIC
|
||||||
# define BOOST_NO_CXX11_HDR_THREAD
|
# define BOOST_NO_CXX11_HDR_THREAD
|
||||||
#endif
|
#endif
|
||||||
|
// C++0x features in GCC 4.9.0 and later
|
||||||
|
//
|
||||||
#if (BOOST_LIBSTDCXX_VERSION < 40900) || !defined(BOOST_LIBSTDCXX11)
|
#if (BOOST_LIBSTDCXX_VERSION < 40900) || !defined(BOOST_LIBSTDCXX11)
|
||||||
// Although <regex> is present and compilable against, the actual implementation is not functional
|
// Although <regex> is present and compilable against, the actual implementation is not functional
|
||||||
// even for the simplest patterns such as "\d" or "[0-9]". This is the case at least in gcc up to 4.8, inclusively.
|
// even for the simplest patterns such as "\d" or "[0-9]". This is the case at least in gcc up to 4.8, inclusively.
|
||||||
@ -223,13 +225,15 @@
|
|||||||
// As of clang-3.6, libstdc++ header <atomic> throws up errors with clang:
|
// As of clang-3.6, libstdc++ header <atomic> throws up errors with clang:
|
||||||
# define BOOST_NO_CXX11_HDR_ATOMIC
|
# define BOOST_NO_CXX11_HDR_ATOMIC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// C++0x headers not yet (fully!) implemented
|
|
||||||
//
|
//
|
||||||
|
// C++0x features in GCC 5.1 and later
|
||||||
|
//
|
||||||
|
#if (BOOST_LIBSTDCXX_VERSION < 50100) || !defined(BOOST_LIBSTDCXX11)
|
||||||
# define BOOST_NO_CXX11_HDR_TYPE_TRAITS
|
# define BOOST_NO_CXX11_HDR_TYPE_TRAITS
|
||||||
# define BOOST_NO_CXX11_HDR_CODECVT
|
# define BOOST_NO_CXX11_HDR_CODECVT
|
||||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_STD_ALIGN
|
# define BOOST_NO_CXX11_STD_ALIGN
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Headers not present on Solaris with the Oracle compiler:
|
// Headers not present on Solaris with the Oracle compiler:
|
||||||
|
Reference in New Issue
Block a user