[PATCH] Relocate std::endian from <type_traits> to <bit>

Jonathan Wakely jwakely@redhat.com
Fri Jul 26 14:10:00 GMT 2019


On 26/07/19 14:32 +0100, Jonathan Wakely wrote:
>This change to an early C++2a feature was just approved (P1612R1).
>
>	* include/std/bit (endian): Move definition here as per P1612R1.
>	* include/std/type_traits (endian): Remove definition from here.
>	* testsuite/20_util/endian/1.cc: Rename to ...
>	* testsuite/26_numerics/endian/1.cc: ... here. Adjust header.

And here's the new feature test macro for it.

Tested x86_64-linux, committed to trunk. I'll also backport to gcc-9.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 5348 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190726/4a7a9c36/attachment.bin>


More information about the Gcc-patches mailing list