|
79 | 79 | </tr> |
80 | 80 | </table> |
81 | 81 | <h1>C++ Standard Library Active Issues List (Revision D125)</h1> |
82 | | -<p>Revised 2025-06-16 at 05:25:02 UTC |
| 82 | +<p>Revised 2025-06-16 at 11:25:15 UTC |
83 | 83 | </p> |
84 | 84 | <p>Reference ISO/IEC IS 14882:2020(E)</p> |
85 | 85 | <p>Also see:</p> |
@@ -41418,7 +41418,7 @@ <h3 id="3694"><a href="#3694">3694</a><sup><a href="https://cplusplus.github.io/ |
41418 | 41418 | <hr> |
41419 | 41419 | <h3 id="3696"><a href="#3696">3696</a><sup><a href="https://cplusplus.github.io/LWG/issue3696">(i)</a></sup>. "Basic integral types" should not be used</h3> |
41420 | 41420 | <p><b>Section:</b> 31.2.2 <a href="https://wg21.link/stream.types">[stream.types]</a> <b>Status:</b> <a href="lwg-active.html#New">New</a> |
41421 | | - <b>Submitter:</b> Jiang An <b>Opened:</b> 2022-05-07 <b>Last modified:</b> 2022-05-17</p> |
| 41421 | + <b>Submitter:</b> Jiang An <b>Opened:</b> 2022-05-07 <b>Last modified:</b> 2025-06-16</p> |
41422 | 41422 | <p><b>Priority: </b>3 |
41423 | 41423 | </p> |
41424 | 41424 | <p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p> |
@@ -41446,9 +41446,47 @@ <h3 id="3696"><a href="#3696">3696</a><sup><a href="https://cplusplus.github.io/ |
41446 | 41446 | Set priority to 3 after reflector poll. |
41447 | 41447 | </p> |
41448 | 41448 |
|
| 41449 | +<p><i>[2025-06-16; Jonathan adds wording]</i></p> |
| 41450 | + |
| 41451 | + |
41449 | 41452 |
|
41450 | 41453 |
|
41451 | 41454 | <p id="res-3696"><b>Proposed resolution:</b></p> |
| 41455 | +<p> |
| 41456 | +This wording is relative to <a href="https://wg21.link/N5008">N5008</a>. |
| 41457 | +</p> |
| 41458 | + |
| 41459 | +<ol> |
| 41460 | +<li><p>Modify 31.2.2 <a href="https://wg21.link/stream.types">[stream.types]</a> as indicated:</p> |
| 41461 | + |
| 41462 | +<blockquote> |
| 41463 | +<pre>using streamoff = implementation-defined;</pre> |
| 41464 | +<p> |
| 41465 | +-1- The type <code class='backtick'>streamoff</code> is a synonym for one of the |
| 41466 | +signed <del>basic</del> integral types |
| 41467 | +of sufficient size to represent the maximum possible file size |
| 41468 | +for the operating system.<sup>256</sup> |
| 41469 | +</p> |
| 41470 | +<pre>using streamsize = implementation-defined;</pre> |
| 41471 | +<p> |
| 41472 | +-2- |
| 41473 | +The type <code class='backtick'>streamsize</code> is a synonym for one of the |
| 41474 | +signed <del>basic</del> integral types. |
| 41475 | +It is used to represent the number of characters transferred |
| 41476 | +in an I/O operation, or the size of I/O buffers.<sup>257</sup> |
| 41477 | +</p> |
| 41478 | + |
| 41479 | +<p> |
| 41480 | +256) Typically <code class='backtick'>long long</code>. |
| 41481 | +</p> |
| 41482 | +<p> |
| 41483 | +257) Most places where <code class='backtick'>streamsize</code> is used would use <code class='backtick'>size_t</code> in C, |
| 41484 | +or <code class='backtick'>ssize_t</code> in POSIX. |
| 41485 | +</p> |
| 41486 | +</blockquote> |
| 41487 | +</li> |
| 41488 | +</ol> |
| 41489 | + |
41452 | 41490 |
|
41453 | 41491 |
|
41454 | 41492 |
|
|
0 commit comments