Skip to content

Commit

Permalink
New P/R for 4154
Browse files Browse the repository at this point in the history
  • Loading branch information
jwakely committed Oct 2, 2024
1 parent 3c445c0 commit 45d7555
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions xml/issue4154.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,36 @@ perhaps we should also so specify for `std::packaged_task`.
Set priority to 3 after reflector poll.
</p>
<p>
"Fix preconditions, since `f` doesn't need to be invocable, we only invoke
the copy."
"Fix preconditions, `f` doesn't need to be invocable, we only invoke the copy."
</p>

<superseded>
<p>
This wording is relative to <paper num="N4988"/>.
</p>
<ol>
<li><p>Modify <sref ref="[futures.task.members]"/> as indicated:</p>
<blockquote>
<p>
-3- <i>Mandates</i>:
<code>is_invocable_r_v&lt;R, <del>F</del><ins>decay_t&lt;F&gt;</ins>&amp;, ArgTypes...&gt;</code>
is `true`.
</p>
[...]
<p>
-5- <i>Effects</i>:
Constructs a new `packaged_task` object with a shared state and initializes
the object's stored task
<ins>of type <code>decay_t&lt;F&gt;</code></ins>
with <code>std::forward&lt;F&gt;(f)</code>.
</p>
</blockquote>
</li>
</ol>
</superseded>

<note>2024-10-02; Jonathan provides improved wording</note>

</discussion>

<resolution>
Expand All @@ -50,7 +76,10 @@ This wording is relative to <paper num="N4988"/>.
<code>is_invocable_r_v&lt;R, <del>F</del><ins>decay_t&lt;F&gt;</ins>&amp;, ArgTypes...&gt;</code>
is `true`.
</p>
[...]
<p><del>-4- <i>Preconditions</i>:
Invoking a copy of `f` behaves the same as invoking `f`.
</del>
</p>
<p>
-5- <i>Effects</i>:
Constructs a new `packaged_task` object with a shared state and initializes
Expand Down

0 comments on commit 45d7555

Please sign in to comment.