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/variant | |
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/variant')
-rw-r--r-- | libcxx/include/variant | 8 |
1 files changed, 4 insertions, 4 deletions
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); |