forked from boostorg/config
Fix up std lib config for clang-3.8 and later
This commit is contained in:
@ -54,20 +54,26 @@
|
|||||||
# define BOOST_NO_CXX11_STD_ALIGN
|
# define BOOST_NO_CXX11_STD_ALIGN
|
||||||
# define BOOST_NO_CXX11_ADDRESSOF
|
# define BOOST_NO_CXX11_ADDRESSOF
|
||||||
# define BOOST_NO_CXX11_HDR_ATOMIC
|
# define BOOST_NO_CXX11_HDR_ATOMIC
|
||||||
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
|
# define BOOST_NO_CXX11_HDR_CHRONO
|
||||||
|
# define BOOST_NO_CXX11_HDR_TYPE_TRAITS
|
||||||
|
# define BOOST_NO_CXX11_HDR_FUTURE
|
||||||
#elif _LIBCPP_VERSION < 3700
|
#elif _LIBCPP_VERSION < 3700
|
||||||
# define BOOST_NO_CXX11_HDR_ATOMIC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// These appear to be unusable/incomplete so far:
|
// These appear to be unusable/incomplete so far:
|
||||||
//
|
//
|
||||||
# define BOOST_NO_CXX11_HDR_CHRONO
|
# define BOOST_NO_CXX11_HDR_ATOMIC
|
||||||
# define BOOST_NO_CXX11_HDR_FUTURE
|
|
||||||
# define BOOST_NO_CXX11_HDR_TYPE_TRAITS
|
|
||||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
|
# define BOOST_NO_CXX11_HDR_CHRONO
|
||||||
|
# define BOOST_NO_CXX11_HDR_TYPE_TRAITS
|
||||||
|
# define BOOST_NO_CXX11_HDR_FUTURE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if _LIBCPP_VERSION < 3700
|
||||||
// libc++ uses a non-standard messages_base
|
// libc++ uses a non-standard messages_base
|
||||||
#define BOOST_NO_STD_MESSAGES
|
#define BOOST_NO_STD_MESSAGES
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__has_include)
|
#if defined(__has_include)
|
||||||
#if !__has_include(<shared_mutex>)
|
#if !__has_include(<shared_mutex>)
|
||||||
|
@ -29,7 +29,7 @@ int test()
|
|||||||
|
|
||||||
std::atomic<int> a1;
|
std::atomic<int> a1;
|
||||||
std::atomic<unsigned> a2;
|
std::atomic<unsigned> a2;
|
||||||
std::atomic<void*> a3;
|
std::atomic<int*> a3;
|
||||||
a1.is_lock_free();
|
a1.is_lock_free();
|
||||||
a1.store(1);
|
a1.store(1);
|
||||||
a1.load();
|
a1.load();
|
||||||
|
Reference in New Issue
Block a user