[committed] libstdc++: Add std::is_layout_compatible trait for C++20
Jonathan Wakely
jwakely@redhat.com
Tue Aug 24 15:17:00 GMT 2021
On 24/08/21 16:13 +0100, Jonathan Wakely wrote:
>Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
>
>libstdc++-v3/ChangeLog:
>
> * include/std/type_traits (is_layout_compatible): Define.
> (is_corresponding_member): Define.
> * include/std/version (__cpp_lib_is_layout_compatible): Define.
> * testsuite/20_util/is_layout_compatible/is_corresponding_member.cc:
> New test.
> * testsuite/20_util/is_layout_compatible/value.cc: New test.
> * testsuite/20_util/is_layout_compatible/version.cc: New test.
> * testsuite/20_util/is_pointer_interconvertible/with_class.cc:
> New test.
> * testsuite/23_containers/span/layout_compat.cc: Do not use real
> std::is_layout_compatible trait if available.
>
And the doc patch, also pushed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1373 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20210824/0f8aa98d/attachment.bin>
More information about the Libstdc++
mailing list