Corrections for C++2a std::unwrap_reference traits
authorJonathan Wakely <jwakely@redhat.com>
Tue, 23 Apr 2019 10:27:14 +0000 (11:27 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 23 Apr 2019 10:27:14 +0000 (11:27 +0100)
commit82e8c3da7408bc0695511ee13f88d451c8adadd8
treeca42dfd0254e48fb5f3394614fc4449da1d17d5a
parent6e271009792ce0c070aad42d96032c38e9bd4aa3
Corrections for C++2a std::unwrap_reference traits

The P0318R1 paper added to the C++2a draft recently was not the latest
version of the paper, and should have included these changes. These
changes will be made to the working draft via a Defect Report, so I'm
applying them to libstdc++ now.

* include/std/type_traits (unwrap_reference_t): Define for C++2a.
(unwrap_ref_decay): Remove inheritance from unwrap_reference.
* testsuite/20_util/unwrap_reference/1.cc: Adjust test to use alias.

From-SVN: r270506
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/type_traits
libstdc++-v3/testsuite/20_util/unwrap_reference/1.cc