On 24/08/21 16:13 +0100, Jonathan Wakely wrote:
Signed-off-by: Jonathan Wakely <jwak...@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.


commit 6d692ef43b2b3368c92c3fb757c7884fc94ee627
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Tue Aug 24 16:15:48 2021

    libstdc++: Update C++20 status table for layout-compatibility traits
    
    Signed-off-by: Jonathan Wakely <jwak...@redhat.com>
    
    libstdc++-v3/ChangeLog:
    
            * doc/xml/manual/status_cxx2020.xml: Update table.
            * doc/html/manual/status.html: Regenerate.

diff --git a/libstdc++-v3/doc/xml/manual/status_cxx2020.xml b/libstdc++-v3/doc/xml/manual/status_cxx2020.xml
index a729ddd3ada..26c882907f3 100644
--- a/libstdc++-v3/doc/xml/manual/status_cxx2020.xml
+++ b/libstdc++-v3/doc/xml/manual/status_cxx2020.xml
@@ -294,13 +294,12 @@ or any notes about the implementation.
     </row>
 
     <row>
-      <?dbhtml bgcolor="#C8B0B0" ?>
       <entry> Layout-compatibility and pointer-interconvertibility traits </entry>
       <entry>
         <link xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0466r5.pdf";>
         P0466R5 </link>
       </entry>
-      <entry align="center"> </entry>
+      <entry align="center"> 12 </entry>
       <entry>
         <informaltable colsep="0" rowsep="0" rowheader="norowheader" frame="none"><tgroup cols="1"><tbody>
         <row><entry> <code>__cpp_lib_is_layout_compatible &gt;= 201907L</code> </entry></row>

Reply via email to