[PATCH] Define std::remove_cvref and std::remove_cvref_t for C++2a
Jonathan Wakely
jwakely@redhat.com
Thu May 3 17:01:00 GMT 2018
On 03/05/18 12:59 +0100, Jonathan Wakely wrote:
>Also define __remove_cvref_t for internal use before C++2a.
>
> * include/std/any (any_cast): Use __remove_cvref_t.
> * include/std/tuple (__make_tuple): Likewise.
> * include/std/type_traits (__remove_cvref_t): Define.
> (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t.
> [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define.
> * include/std/variant (__erased_hash): Use __remove_cvref_t.
I forgot to add the tests, here they are.
Tested powerpc64le-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 8118 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20180503/31fbdc62/attachment.bin>
More information about the Libstdc++
mailing list