diff options
author | Louis Dionne <ldionne@apple.com> | 2019-01-10 20:06:11 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-01-10 20:06:11 +0000 |
commit | 1d5f6a81f577d62688946e3ffbcf2643f03fa507 (patch) | |
tree | 4327bda2860847a2b716545a10d533709f4730e1 /libcxx/include | |
parent | 7d1085cbb020f68014ba938314e9136bb9e811a1 (diff) | |
download | bcm5719-llvm-1d5f6a81f577d62688946e3ffbcf2643f03fa507.tar.gz bcm5719-llvm-1d5f6a81f577d62688946e3ffbcf2643f03fa507.zip |
[libcxx] Reorganize tests since the application of P0602R4
Summary:
P0602R4 makes the special member functions of optional and variant
conditionally trivial based on the types in the optional/variant.
We already implemented that, but the tests were organized as if this
were a non-standard extension. This patch reorganizes the tests in a
way that makes more sense since this is not an extension anymore.
Reviewers: EricWF, mpark, mclow.lists
Subscribers: christof, jkorous, dexonsmith, libcxx-commits
Differential Revision: https://reviews.llvm.org/D54772
llvm-svn: 350884
Diffstat (limited to 'libcxx/include')
-rw-r--r-- | libcxx/include/optional | 4 | ||||
-rw-r--r-- | libcxx/include/variant | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libcxx/include/optional b/libcxx/include/optional index 544140f2366..70422068e28 100644 --- a/libcxx/include/optional +++ b/libcxx/include/optional @@ -105,8 +105,8 @@ namespace std { // 23.6.3.3, assignment optional &operator=(nullopt_t) noexcept; - optional &operator=(const optional &); - optional &operator=(optional &&) noexcept(see below ); + optional &operator=(const optional &); // constexpr in C++20 + optional &operator=(optional &&) noexcept(see below); // constexpr in C++20 template <class U = T> optional &operator=(U &&); template <class U> optional &operator=(const optional<U> &); template <class U> optional &operator=(optional<U> &&); diff --git a/libcxx/include/variant b/libcxx/include/variant index 4a771dc6350..a4339de6cde 100644 --- a/libcxx/include/variant +++ b/libcxx/include/variant @@ -23,8 +23,8 @@ namespace std { // 20.7.2.1, constructors constexpr variant() noexcept(see below); - variant(const variant&); - variant(variant&&) noexcept(see below); + variant(const variant&); // constexpr in C++20 + variant(variant&&) noexcept(see below); // constexpr in C++20 template <class T> constexpr variant(T&&) noexcept(see below); @@ -46,8 +46,8 @@ namespace std { ~variant(); // 20.7.2.3, assignment - variant& operator=(const variant&); - variant& operator=(variant&&) noexcept(see below); + variant& operator=(const variant&); // constexpr in C++20 + variant& operator=(variant&&) noexcept(see below); // constexpr in C++20 template <class T> variant& operator=(T&&) noexcept(see below); |