search for: _libcpp_version

Displaying 5 results from an estimated 5 matches for "_libcpp_version".

2015 Jun 09
2
[LLVMdev] C++14 support for shared_mutex
...a tightly controlled platform like OS X you might find a mostly > reliable proxy like the clang version (though people trying to use an > updated libc++ may curse you for it). I can tell "in general terms that it's libc++". The Boost.config headers can know that from the macro _LIBCPP_VERSION. Once I can tell, you are saying that there is no reliable way to tell whether libc++ supports shared_mutex, which is currently a completely valid C++14 header file and implementation ? That seems pretty poor of libc++. I don't mean to be critical but I think that a good standard library cr...
2015 Jun 09
5
[LLVMdev] C++14 support for shared_mutex
How can I tell at compile time through predefined macros whether libc++ includes/supports the C++14 header file shared_mutex ? Given that I have identified that libc++ is being used, will this work ? : #if __cplusplus >= 201402 // Header file shared_mutex supported #endif or do I need to check something else ?
2018 Jan 24
2
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...+++ llvm/trunk/unittests/ADT/OptionalTest.cpp Thu Jan 18 03:26:24 2018 > @@ -518,5 +518,14 @@ TEST_F(OptionalTest, OperatorGreaterEqua > CheckRelation<GreaterEqual>(InequalityLhs, InequalityRhs, !IsLess); > } > > +#if (__has_feature(is_trivially_copyable) && defined(_LIBCPP_VERSION)) > || \ > + (defined(__GNUC__) && __GNUC__ >= 5) > +static_assert(std::is_trivially_copyable<Optional<int>>::value, > + "Should be trivially copyable"); > +static_assert( > + !std::is_trivially_copyable<Optional<NonDe...
2018 Jan 24
0
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...ests/ADT/OptionalTest.cpp Thu Jan 18 03:26:24 2018 >> @@ -518,5 +518,14 @@ TEST_F(OptionalTest, OperatorGreaterEqua >> CheckRelation<GreaterEqual>(InequalityLhs, InequalityRhs, !IsLess); >> } >> >> +#if (__has_feature(is_trivially_copyable) && defined(_LIBCPP_VERSION)) || >> \ >> + (defined(__GNUC__) && __GNUC__ >= 5) >> +static_assert(std::is_trivially_copyable<Optional<int>>::value, >> + "Should be trivially copyable"); >> +static_assert( >> + >> !std::is_trivially_copy...
2018 Jan 24
1
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...Jan 18 03:26:24 2018 > >> @@ -518,5 +518,14 @@ TEST_F(OptionalTest, OperatorGreaterEqua > >> CheckRelation<GreaterEqual>(InequalityLhs, InequalityRhs, !IsLess); > >> } > >> > >> +#if (__has_feature(is_trivially_copyable) && > defined(_LIBCPP_VERSION)) || > >> \ > >> + (defined(__GNUC__) && __GNUC__ >= 5) > >> +static_assert(std::is_trivially_copyable<Optional<int>>::value, > >> + "Should be trivially copyable"); > >> +static_assert( > >> + &g...