search for: is_trivially_copyable

Displaying 4 results from an estimated 4 matches for "is_trivially_copyable".

2018 Jan 24
2
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...ests/ADT/OptionalTest.cpp (original) > +++ 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_tri...
2018 Jan 24
0
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...p (original) >> +++ 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( >&gt...
2018 Jan 24
1
[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"); > &g...
2019 Jan 22
20
[RFC] migrating past C++11
Hello fans of the auto keyword! We now have a policy on how LLVM toolchains get updated <https://reviews.llvm.org/rL351765>! Let’s put that policy to good use, and talk about how we’ll move all monorepo projects past C++11. Previous Discussions LLVM dev meeting 2018 BoF "Migrating to C++14, and beyond! <http://llvm.org/devmtg/2018-10/talk-abstracts.html#bof3>" A Short