[PATCH] Define __cpp_lib_tuple_element_t in <tuple> not <utility>
Jonathan Wakely
jwakely@redhat.com
Thu Jun 14 19:08:00 GMT 2018
On 14/06/18 15:00 +0100, Jonathan Wakely wrote:
>During the review of P0941R2 in Rapperswil we noticed that SD-6 puts
>the macro __cpp_lib_tuple_element_t in <utility>, but it should be in
><tuple>.
>
> * include/std/tuple (__cpp_lib_tuple_element_t): Move feature test
> macro from <utility> and change type to long.
> * include/std/utility (__cpp_lib_tuple_element_t): Remove.
> * testsuite/20_util/tuple/tuple_element_t.cc: Check for feature test
> macro.
>
>Tested x86_64-linux, committed to trunk.
This caused some tests to fail (but not for me, maybe because of
precompiled headers). I'm moving the macro and the alias template back
to <utility>, but keeping the change of the macro value from int to
long (as required by the C++2a working paper).
Tested powerpc64le-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2039 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20180614/43a12aa7/attachment.bin>
More information about the Libstdc++
mailing list