Skip to content

Commit 9ccdef9

Browse files
author
github-actions
committed
Automatic update from GitHub Actions workflow
1 parent 229779f commit 9ccdef9

22 files changed

+180
-45
lines changed

issue4259.html

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<p><em>This page is a snapshot from the LWG issues list, see the <a href="lwg-active.html">Library Active Issues List</a> for more information and the meaning of <a href="lwg-active.html#New">New</a> status.</em></p>
6565
<h3 id="4259"><a href="lwg-active.html#4259">4259</a>. P1148R0 changed the return values of searching functions of <code class='backtick'>std::basic_string</code> on some platforms</h3>
6666
<p><b>Section:</b> 27.4.3.8.2 <a href="https://wg21.link/string.find">[string.find]</a> <b>Status:</b> <a href="lwg-active.html#New">New</a>
67-
<b>Submitter:</b> Jiang An <b>Opened:</b> 2025-05-05 <b>Last modified:</b> 2025-05-18</p>
67+
<b>Submitter:</b> Jiang An <b>Opened:</b> 2025-05-05 <b>Last modified:</b> 2025-06-14</p>
6868
<p><b>Priority: </b>Not Prioritized
6969
</p>
7070
<p><b>View other</b> <a href="lwg-index-open.html#string.find">active issues</a> in [string.find].</p>
@@ -85,8 +85,9 @@ <h3 id="4259"><a href="lwg-active.html#4259">4259</a>. P1148R0 changed the retur
8585
Do we want to restore the old return values?
8686
</p>
8787

88+
<p><strong>Previous resolution [SUPERSEDED]:</strong></p>
89+
<blockquote class="note">
8890

89-
<p id="res-4259"><b>Proposed resolution:</b></p>
9091
<p>
9192
This wording is relative to <a href="https://wg21.link/N5008">N5008</a>.
9293
</p>
@@ -120,6 +121,50 @@ <h3 id="4259"><a href="lwg-active.html#4259">4259</a>. P1148R0 changed the retur
120121
</blockquote>
121122
</li>
122123
</ol>
124+
</blockquote>
125+
126+
<p><i>[2025-06-10, reflector discussion]</i></p>
127+
128+
<p>
129+
During reflector discussion of this issue there was a preference to adjust the
130+
proposed wording to use <code class='backtick'>s.npos</code> instead of <code class='backtick'>size_t(-1)</code>.
131+
</p>
132+
133+
134+
<p id="res-4259"><b>Proposed resolution:</b></p>
135+
<p>
136+
This wording is relative to <a href="https://wg21.link/N5008">N5008</a>.
137+
</p>
138+
<ol>
139+
140+
<li><p>Modify 27.4.3.8.2 <a href="https://wg21.link/string.find">[string.find]</a> as indicated:</p>
141+
142+
<blockquote>
143+
<pre>
144+
template&lt;class T&gt;
145+
constexpr size_type find(const T&amp; t, size_type pos = 0) const noexcept(<i>see below</i>);
146+
[&hellip;]
147+
template&lt;class T&gt;
148+
constexpr size_type find_last_not_of(const T&amp; t, size_type pos = npos) const noexcept(<i>see below</i>);
149+
</pre>
150+
<blockquote>
151+
<p>
152+
-2- <i>Constraints</i>: [&hellip;]
153+
<p/>
154+
-3- <i>Effects</i>: Let <code><i>G</i></code> be the name of the function. Equivalent to:
155+
</p>
156+
<blockquote><pre>
157+
basic_string_view&lt;charT, traits&gt; s = *this, sv = t;
158+
<del>return s.<i>G</i>(sv, pos);</del>
159+
<ins>if (auto result = s.<i>G</i>(sv, pos); result == s.npos)
160+
return npos;
161+
else
162+
return result;</ins>
163+
</pre></blockquote>
164+
</blockquote>
165+
</blockquote>
166+
</li>
167+
</ol>
123168

124169

125170

lwg-active.html

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</tr>
8080
</table>
8181
<h1>C++ Standard Library Active Issues List (Revision D125)</h1>
82-
<p>Revised 2025-06-14 at 09:47:03 UTC
82+
<p>Revised 2025-06-14 at 10:02:39 UTC
8383
</p>
8484
<p>Reference ISO/IEC IS 14882:2020(E)</p>
8585
<p>Also see:</p>
@@ -74880,7 +74880,7 @@ <h3 id="4258"><a href="#4258">4258</a><sup><a href="https://cplusplus.github.io/
7488074880
<hr>
7488174881
<h3 id="4259"><a href="#4259">4259</a><sup><a href="https://cplusplus.github.io/LWG/issue4259">(i)</a></sup>. P1148R0 changed the return values of searching functions of <code class='backtick'>std::basic_string</code> on some platforms</h3>
7488274882
<p><b>Section:</b> 27.4.3.8.2 <a href="https://wg21.link/string.find">[string.find]</a> <b>Status:</b> <a href="lwg-active.html#New">New</a>
74883-
<b>Submitter:</b> Jiang An <b>Opened:</b> 2025-05-05 <b>Last modified:</b> 2025-05-18</p>
74883+
<b>Submitter:</b> Jiang An <b>Opened:</b> 2025-05-05 <b>Last modified:</b> 2025-06-14</p>
7488474884
<p><b>Priority: </b>Not Prioritized
7488574885
</p>
7488674886
<p><b>View other</b> <a href="lwg-index-open.html#string.find">active issues</a> in [string.find].</p>
@@ -74901,8 +74901,9 @@ <h3 id="4259"><a href="#4259">4259</a><sup><a href="https://cplusplus.github.io/
7490174901
Do we want to restore the old return values?
7490274902
</p>
7490374903

74904+
<p><strong>Previous resolution [SUPERSEDED]:</strong></p>
74905+
<blockquote class="note">
7490474906

74905-
<p id="res-4259"><b>Proposed resolution:</b></p>
7490674907
<p>
7490774908
This wording is relative to <a href="https://wg21.link/N5008">N5008</a>.
7490874909
</p>
@@ -74936,6 +74937,50 @@ <h3 id="4259"><a href="#4259">4259</a><sup><a href="https://cplusplus.github.io/
7493674937
</blockquote>
7493774938
</li>
7493874939
</ol>
74940+
</blockquote>
74941+
74942+
<p><i>[2025-06-10, reflector discussion]</i></p>
74943+
74944+
<p>
74945+
During reflector discussion of this issue there was a preference to adjust the
74946+
proposed wording to use <code class='backtick'>s.npos</code> instead of <code class='backtick'>size_t(-1)</code>.
74947+
</p>
74948+
74949+
74950+
<p id="res-4259"><b>Proposed resolution:</b></p>
74951+
<p>
74952+
This wording is relative to <a href="https://wg21.link/N5008">N5008</a>.
74953+
</p>
74954+
<ol>
74955+
74956+
<li><p>Modify 27.4.3.8.2 <a href="https://wg21.link/string.find">[string.find]</a> as indicated:</p>
74957+
74958+
<blockquote>
74959+
<pre>
74960+
template&lt;class T&gt;
74961+
constexpr size_type find(const T&amp; t, size_type pos = 0) const noexcept(<i>see below</i>);
74962+
[&hellip;]
74963+
template&lt;class T&gt;
74964+
constexpr size_type find_last_not_of(const T&amp; t, size_type pos = npos) const noexcept(<i>see below</i>);
74965+
</pre>
74966+
<blockquote>
74967+
<p>
74968+
-2- <i>Constraints</i>: [&hellip;]
74969+
<p/>
74970+
-3- <i>Effects</i>: Let <code><i>G</i></code> be the name of the function. Equivalent to:
74971+
</p>
74972+
<blockquote><pre>
74973+
basic_string_view&lt;charT, traits&gt; s = *this, sv = t;
74974+
<del>return s.<i>G</i>(sv, pos);</del>
74975+
<ins>if (auto result = s.<i>G</i>(sv, pos); result == s.npos)
74976+
return npos;
74977+
else
74978+
return result;</ins>
74979+
</pre></blockquote>
74980+
</blockquote>
74981+
</blockquote>
74982+
</li>
74983+
</ol>
7493974984

7494074985

7494174986

lwg-closed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</tr>
8080
</table>
8181
<h1>C++ Standard Library Closed Issues List (Revision D125)</h1>
82-
<p>Revised 2025-06-14 at 09:47:03 UTC
82+
<p>Revised 2025-06-14 at 10:02:39 UTC
8383
</p>
8484
<p>Reference ISO/IEC IS 14882:2020(E)</p>
8585
<p>Also see:</p>

lwg-defects.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</tr>
8080
</table>
8181
<h1>C++ Standard Library Defect Reports and Accepted Issues (Revision D125)</h1>
82-
<p>Revised 2025-06-14 at 09:47:03 UTC
82+
<p>Revised 2025-06-14 at 10:02:39 UTC
8383
</p>
8484
<p>Reference ISO/IEC IS 14882:2020(E)</p>
8585
<p>Also see:</p>

lwg-immediate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h1>C++ Standard Library Issues Resolved Directly In [INSERT CURRENT MEETING HER
6262
</tr>
6363
<tr>
6464
<td align="left">Date:</td>
65-
<td align="left">Revised 2025-06-14 at 09:47:03 UTC
65+
<td align="left">Revised 2025-06-14 at 10:02:39 UTC
6666
</td>
6767
</tr>
6868
<tr>

lwg-index-open.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h1>Index by Section</h1>
6666
<p>This document is the Index by Section for the <a href="lwg-active.html">Library Active Issues List</a>.</p>
6767
<h2>Index by Section (non-Ready active issues only)</h2>
6868
<p><a href="lwg-index.html">(view all issues)</a></p>
69-
<p>Revised 2025-06-14 at 09:47:03 UTC
69+
<p>Revised 2025-06-14 at 10:02:39 UTC
7070
</p><h2 id="Section_3">Section 3 (2 issues)</h2>
7171
<p><a href="lwg-index.html#Section_3">(view all issues)</a></p>
7272
<table class="issues-index">

lwg-index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h1>Index by Section</h1>
6666
<p>This document is the Index by Section for the <a href="lwg-active.html">Library Active Issues List</a>, <a href="lwg-defects.html">Library Defect Reports and Accepted Issues</a>, and <a href="lwg-closed.html">Library Closed Issues List</a>.</p>
6767
<h2>Index by Section</h2>
6868
<p><a href="lwg-index-open.html">(view only non-Ready open issues)</a></p>
69-
<p>Revised 2025-06-14 at 09:47:03 UTC
69+
<p>Revised 2025-06-14 at 10:02:39 UTC
7070
</p><h2 id="Section_2">Section 2 (2 issues)</h2>
7171
<table class="issues-index">
7272
<tr>

lwg-ready.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h1>C++ Standard Library Issues to be moved in [INSERT CURRENT MEETING HERE]</h1
6262
</tr>
6363
<tr>
6464
<td align="left">Date:</td>
65-
<td align="left">Revised 2025-06-14 at 09:47:03 UTC
65+
<td align="left">Revised 2025-06-14 at 10:02:39 UTC
6666
</td>
6767
</tr>
6868
<tr>

lwg-status-date.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ <h1>Index by Status and Date</h1>
6767
This document is the Index by Status and Date for the <a href="lwg-active.html">Library Active Issues List</a>,
6868
<a href="lwg-defects.html">Library Defect Reports and Accepted Issues</a>, and <a href="lwg-closed.html">Library Closed Issues List</a>.
6969
</p>
70-
<p>Revised 2025-06-14 at 09:47:03 UTC
70+
<p>Revised 2025-06-14 at 10:02:39 UTC
7171
</p><h2 id="Voting">Voting (24 issues)</h2>
7272
<table class="issues-index">
7373
<tr>
@@ -496,6 +496,15 @@ <h2 id="New">New (494 issues)</h2>
496496
<td></td>
497497
</tr>
498498
<tr>
499+
<td id="4259"><a href="lwg-active.html#4259" title="P1148R0 changed the return values of searching functions of std::basic_string on some platforms (Status: New)">4259</a><sup><a href="https://cplusplus.github.io/LWG/issue4259">(i)</a></sup></td>
500+
<td><a href="lwg-active.html#New">New</a></td>
501+
<td>27.4.3.8.2 [string.find]</td>
502+
<td>P1148R0 changed the return values of searching functions of <code class='backtick'>std::basic_string</code> on some platforms</td>
503+
<td>Yes</td>
504+
<td></td>
505+
<td></td>
506+
</tr>
507+
<tr>
499508
<td id="4165"><a href="lwg-active.html#4165" title="Should swapping a built-in array or std::array with itself result in UB? (Status: New)">4165</a><sup><a href="https://cplusplus.github.io/LWG/issue4165">(i)</a></sup></td>
500509
<td><a href="lwg-active.html#New">New</a></td>
501510
<td>18.4.9 [concept.swappable]</td>
@@ -752,15 +761,6 @@ <h2 id="New">New (494 issues)</h2>
752761
<td></td>
753762
</tr>
754763
<tr>
755-
<td id="4259"><a href="lwg-active.html#4259" title="P1148R0 changed the return values of searching functions of std::basic_string on some platforms (Status: New)">4259</a><sup><a href="https://cplusplus.github.io/LWG/issue4259">(i)</a></sup></td>
756-
<td><a href="lwg-active.html#New">New</a></td>
757-
<td>27.4.3.8.2 [string.find]</td>
758-
<td>P1148R0 changed the return values of searching functions of <code class='backtick'>std::basic_string</code> on some platforms</td>
759-
<td>Yes</td>
760-
<td></td>
761-
<td></td>
762-
</tr>
763-
<tr>
764764
<td id="4261"><a href="lwg-active.html#4261" title="P1206R7 broke uses of container adaptors with old custom sequence containers (Status: New)">4261</a><sup><a href="https://cplusplus.github.io/LWG/issue4261">(i)</a></sup></td>
765765
<td><a href="lwg-active.html#New">New</a></td>
766766
<td>27.4.3.8.2 [string.find]</td>

lwg-status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h1>Index by Status and Section</h1>
6262
<a href="lwg-defects.html">Library Defect Reports and Accepted Issues</a>, and <a href="lwg-closed.html">Library Closed Issues List</a>.
6363
</p>
6464

65-
<p>Revised 2025-06-14 at 09:47:03 UTC
65+
<p>Revised 2025-06-14 at 10:02:39 UTC
6666
</p><h2 id="Voting">Voting (24 issues)</h2>
6767
<table class="issues-index">
6868
<tr>

0 commit comments

Comments
 (0)