|
79 | 79 | </tr> |
80 | 80 | </table> |
81 | 81 | <h1>C++ Standard Library Active Issues List (Revision D125)</h1> |
82 | | -<p>Revised 2025-10-10 at 13:35:35 UTC |
| 82 | +<p>Revised 2025-10-10 at 13:47:50 UTC |
83 | 83 | </p> |
84 | 84 | <p>Reference ISO/IEC IS 14882:2020(E)</p> |
85 | 85 | <p>Also see:</p> |
@@ -21645,7 +21645,7 @@ <h3 id="3029"><a href="#3029">3029</a><sup><a href="https://cplusplus.github.io/ |
21645 | 21645 | <hr> |
21646 | 21646 | <h3 id="3044"><a href="#3044">3044</a><sup><a href="https://cplusplus.github.io/LWG/issue3044">(i)</a></sup>. Strange specification of <code>max_size()</code> for an allocator</h3> |
21647 | 21647 | <p><b>Section:</b> 16.4.4.6 <a href="https://wg21.link/allocator.requirements">[allocator.requirements]</a> <b>Status:</b> <a href="lwg-active.html#New">New</a> |
21648 | | - <b>Submitter:</b> Jon Cohen <b>Opened:</b> 2017-12-06 <b>Last modified:</b> 2024-01-29</p> |
| 21648 | + <b>Submitter:</b> Jon Cohen <b>Opened:</b> 2017-12-06 <b>Last modified:</b> 2025-10-10</p> |
21649 | 21649 | <p><b>Priority: </b>3 |
21650 | 21650 | </p> |
21651 | 21651 | <p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p> |
@@ -21815,9 +21815,9 @@ <h3 id="3044"><a href="#3044">3044</a><sup><a href="https://cplusplus.github.io/ |
21815 | 21815 |
|
21816 | 21816 | <p><i>[2022-04-25; Daniel rebases wording on <a href="https://wg21.link/N4910" title=" Working Draft, Standard for Programming Language C++">N4910</a>]</i></p> |
21817 | 21817 |
|
| 21818 | +<p><strong>Previous resolution [SUPERSEDED]:</strong></p> |
| 21819 | +<blockquote class="note"> |
21818 | 21820 |
|
21819 | | - |
21820 | | -<p id="res-3044"><b>Proposed resolution:</b></p> |
21821 | 21821 | <p> |
21822 | 21822 | This wording is relative to <a href="https://wg21.link/N4910" title=" Working Draft, Standard for Programming Language C++">N4910</a>. |
21823 | 21823 | </p> |
@@ -21858,6 +21858,55 @@ <h3 id="3044"><a href="#3044">3044</a><sup><a href="https://cplusplus.github.io/ |
21858 | 21858 | </li> |
21859 | 21859 |
|
21860 | 21860 | </ol> |
| 21861 | +</blockquote> |
| 21862 | + |
| 21863 | +<p><i>[2025-10-10; Jonathan provides improved wording]</i></p> |
| 21864 | + |
| 21865 | + |
| 21866 | + |
| 21867 | + |
| 21868 | +<p id="res-3044"><b>Proposed resolution:</b></p> |
| 21869 | +<p> |
| 21870 | +This wording is relative to <a href="https://wg21.link/N5014">N5014</a>. |
| 21871 | +</p> |
| 21872 | + |
| 21873 | +<ol> |
| 21874 | +<li><p>Change 16.4.4.6.1 <a href="https://wg21.link/allocator.requirements.general">[allocator.requirements.general]</a> as indicated:</p> |
| 21875 | + |
| 21876 | + |
| 21877 | +<blockquote> |
| 21878 | +<p> |
| 21879 | +-2- In subclause 16.4.4.6 <a href="https://wg21.link/allocator.requirements">[allocator.requirements]</a>, |
| 21880 | +</p> |
| 21881 | +<ol style="list-style-type:none"> |
| 21882 | +<li><p>(2.1) — […]</p></li> |
| 21883 | +<li><p>[…]</p></li> |
| 21884 | +<li><p>(2.6) — <code>a</code>, <code>a1</code>, <code>a2</code> denote lvalues of type <code>X</code>,</p></li> |
| 21885 | +<li><p><ins>(?.?) — <code>a3</code> denotes an lvalue of type (possibly const) <code>X</code>,</ins></p></li> |
| 21886 | +<li><p>[…]</p></li> |
| 21887 | +</ol> |
| 21888 | +<p>[…]</p> |
| 21889 | +<pre> |
| 21890 | +a<ins>3</ins>.max_size() |
| 21891 | +</pre> |
| 21892 | +<blockquote> |
| 21893 | +<p> |
| 21894 | +-50- <i>Result:</i> <code>X::size_type</code> |
| 21895 | +<p/> |
| 21896 | +-51- <i>Returns:</i> The largest value that can meaningfully be passed to <code>X::allocate()</code>. |
| 21897 | +<p/> |
| 21898 | +<ins>[<i>Note:</i> Larger values can cause an exception to be thrown. — <i>end note</i>]</ins> |
| 21899 | +<p/> |
| 21900 | +<ins>-?- <i>Throws:</i> Nothing.</ins> |
| 21901 | +<p/> |
| 21902 | +-52- <i>Remarks:</i> Default: <code>numeric_limits<size_type>::max() / sizeof(value_type)</code> |
| 21903 | +</p> |
| 21904 | +</blockquote> |
| 21905 | +</blockquote> |
| 21906 | +</li> |
| 21907 | + |
| 21908 | +</ol> |
| 21909 | + |
21861 | 21910 |
|
21862 | 21911 |
|
21863 | 21912 |
|
|
0 commit comments