Skip to content

Commit b81a504

Browse files
committed
New issue for US 240-370: Bad phrasing for SCHED(s)
1 parent 1ab9a29 commit b81a504

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

xml/issue4445.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace std::execution {
4242
explicit task_scheduler(Sch&& sch, Allocator alloc = {});
4343

4444
<ins>task_scheduler(const task_scheduler&amp;) = default;</ins>
45-
<ins>task_scheduler& operator=(const task_scheduler&amp;) = default;</ins>
45+
<ins>task_scheduler&amp; operator=(const task_scheduler&amp;) = default;</ins>
4646

4747
<i>ts-sender</i> schedule();
4848

xml/issue4446.xml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='no'?>
2+
<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3+
4+
<issue num="4446" status="New">
5+
<title>Bad phrasing for <tt><i>SCHED</i>(s)</tt></title>
6+
<section>
7+
<sref ref="[exec.task.scheduler]"/>
8+
</section>
9+
<submitter>Tomasz Kamiński</submitter>
10+
<date>05 Nov 2025</date>
11+
<priority>99</priority>
12+
13+
<discussion>
14+
<b>Addresses <a href="https://github.com/cplusplus/nbballot/issues/945">US 240-370</a></b>
15+
<p>`shared_ptr` owns a pointer (or `nullptr_t`), not the pointee, but <tt><i>SCHED</i></tt> wants the pointee.</p>
16+
</discussion>
17+
18+
<resolution>
19+
<p>
20+
This wording is relative to <paper num="N5014"/>.
21+
</p>
22+
23+
<ol>
24+
25+
<li><p>Modify <sref ref="[exec.task.scheduler]"/> as indicated:</p>
26+
27+
<blockquote>
28+
<p>
29+
-1- `task_scheduler` is a class that models `scheduler` (<sref ref="[exec.sched]"/>).
30+
Given an object `s` of type `task_scheduler`, let <tt><i>SCHED</i></tt> be the object
31+
<ins>pointed by the pointer</ins> owned by `s.sch_`.
32+
</p>
33+
</blockquote>
34+
</li>
35+
</ol>
36+
37+
</resolution>
38+
39+
</issue>

0 commit comments

Comments
 (0)