File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed
Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff 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& ) = default;</ins >
45- <ins >task_scheduler& operator=(const task_scheduler& ) = default;</ins >
45+ <ins >task_scheduler& operator=(const task_scheduler& ) = default;</ins >
4646
4747 <i >ts-sender</i > schedule();
4848
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments