Implement std::common_reference for C++20
authorJonathan Wakely <jwakely@redhat.com>
Tue, 10 Sep 2019 16:28:27 +0000 (17:28 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 10 Sep 2019 16:28:27 +0000 (17:28 +0100)
commit0f8b14ee8ae787d7fba104dbdeb31e0400f6b7d2
tree9d0f6bacb2a57e50344f8c1fb8782e0f2542d507
parente8b0314a583b028ad2d6508b455e33f5787bffe1
Implement std::common_reference for C++20

* include/std/type_traits (__do_common_type_impl): Implement
additional COND-RES(CREF(D1), CRED(D2)) condition for C++20.
(basic_common_reference, common_reference, common_reference_t): Define
for C++20.
* testsuite/20_util/common_reference/requirements/alias_decl.cc: New
test.
* testsuite/20_util/common_reference/requirements/
explicit_instantiation.cc: New test.
* testsuite/20_util/common_reference/requirements/typedefs.cc: New
test.

From-SVN: r275594
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/type_traits
libstdc++-v3/testsuite/20_util/common_reference/requirements/alias_decl.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/common_reference/requirements/explicit_instantiation.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/common_reference/requirements/typedefs.cc [new file with mode: 0644]