As noted in PR c++/94765 floating point types are not supported as
non-type template args.

Marek added the P1907R1 paper in commit d59a823fb but didn't give it a
distinct entries for the "Supported in GCC?" and "SD-6 Feature Test"
columns. This keeps it grouped with P0732R2 but in its own row.

The table uses the nth-child CSS pseudo-class for formatting, but
rowspan attributes mess that up by altering the number of children in
the row. This patches uses (non-displayed) <template> elements to
preserve the ordering for nth-child, so that the table cells are aligned
consistently. Those elements have no other effect, and no effect at all
for non-graphical browsers that ignore the CSS formatting.

OK for wwwdocs?


commit 51e56b08d72034ec904ee640919fc0906e78076f
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Apr 29 10:44:55 2020 +0100

    Correct status and macro for P1907R1
    
    As noted in PR c++/94765 floating point types are not supported as
    non-type template args.
    
    Marek added the P1907R1 paper in commit d59a823fb but didn't give it a
    distinct entries for the "Supported in GCC?" and "SD-6 Feature Test"
    columns. This keeps it grouped with P0732R2 but in its own row.
    
    The table uses the nth-child CSS pseudo-class for formatting, but
    rowspan attributes mess that up by altering the number of children in
    the row. This patches uses (non-displayed) <template> elements to
    preserve the ordering for nth-child, so that the table cells are aligned
    consistently. Those elements have no other effect, and no effect at all
    for non-graphical browsers that ignore the CSS formatting.

diff --git a/htdocs/projects/cxx-status.html b/htdocs/projects/cxx-status.html
index 1a2633ef..3eca8049 100644
--- a/htdocs/projects/cxx-status.html
+++ b/htdocs/projects/cxx-status.html
@@ -293,13 +293,21 @@
       <td> </td>
     </tr>
     <tr>
-      <td> Class Types in Non-Type Template Parameters </td>
-      <td><a href="https://wg21.link/p0732r2";>P0732R2</a><br/>
-       <!-- from Belfast -->
-       <a href="https://wg21.link/p1907r1";>P1907R1</a></td>
+      <td rowspan=2> Class Types in Non-Type Template Parameters </td>
+      <td><a href="https://wg21.link/p0732r2";>P0732R2</a><br/></td>
       <td class="supported"> <a href="../gcc-9/changes.html#cxx">9</a> </td>
       <td> __cpp_nontype_template_parameter_class &gt;= 201806 </td>
     </tr>
+    <tr>
+      <template><!-- preserve CSS nth-child ordering --></template>
+      <!-- from Belfast -->
+      <td><a href="https://wg21.link/p1907r1";>P1907R1</a></td>
+      <td class="partial">
+        <a href="../gcc-9/changes.html#cxx">9</a>
+        (partial, no floating point template args)
+      </td>
+      <td> __cpp_nontype_template_args &gt;= 201911 </td>
+    </tr>
     <tr>
       <td> Atomic Compare-and-Exchange with Padding Bits </td>
       <td><a href="https://wg21.link/p0528r3";>P0528R3</a></td>
@@ -383,6 +391,7 @@
       <td> </td>
     </tr>
     <tr>
+      <template><!-- preserve CSS nth-child ordering --></template>
       <td><a href="https://wg21.link/p1331r2";>P1331R2</a></td>
       <td class="supported center"><a 
href="../gcc-10/changes.html#cxx">10</a></td>
       <td> __cpp_constexpr &gt;= 201907 </td>

Reply via email to