|
| 1 | +<?xml version='1.0' encoding='utf-8' standalone='no'?> |
| 2 | +<!DOCTYPE issue SYSTEM "lwg-issue.dtd"> |
| 3 | + |
| 4 | +<issue num="4456" status="New"> |
| 5 | +<title>Decay `Data` and `Child` in <i>`make-sender`</i></title> |
| 6 | +<section><sref ref="[exec.snd.expos]"/></section> |
| 7 | +<submitter>Jonathan Wakely</submitter> |
| 8 | +<date>06 Nov 2025</date> |
| 9 | +<priority>99</priority> |
| 10 | + |
| 11 | +<discussion> |
| 12 | +<b>Addresses <a href="https://github.com/cplusplus/nbballot/issues/926">US 211-351</a></b> |
| 13 | +<p> |
| 14 | +The <i>Mandates</i>: for <i>`make-sender`</i> defines `Sndr` as a type that |
| 15 | +is different from what the <i>Returns</i>: element uses. |
| 16 | +</p> |
| 17 | +</discussion> |
| 18 | + |
| 19 | +<resolution> |
| 20 | +<p> |
| 21 | +This wording is relative to <paper num="N5014"/>. |
| 22 | +</p> |
| 23 | + |
| 24 | +<ol> |
| 25 | +<li><p>Modify <sref ref="[exec.snd.expos]"/>, as indicated:</p> |
| 26 | + |
| 27 | +<blockquote> |
| 28 | +<pre> |
| 29 | +template<class Tag, class Data = see below, class... Child> |
| 30 | + constexpr auto make-sender(Tag tag, Data&& data, Child&&... child); |
| 31 | +</pre> |
| 32 | +<blockquote> |
| 33 | +<p>-24- <i>Mandates</i>: The following expressions are `true`: |
| 34 | +<ul> |
| 35 | +<li>(24.1) — <tt>semiregular<Tag></tt></li> |
| 36 | +<li>(24.2) — <tt><i>movable-value</i><Data></tt></li> |
| 37 | +<li>(24.3) — <tt>(sender<Child> && ...)</tt></li> |
| 38 | +<li>(24.4) — |
| 39 | +<tt>dependent_sender<Sndr> || sender_in<Sndr></tt>, |
| 40 | +where `Sndr` is |
| 41 | +<tt><i>basic-sender</i><Tag, <del>Data, Child</del> |
| 42 | +<ins>decay_t<Data>, decay_t<Child></ins>...></tt> |
| 43 | +as defined below. |
| 44 | +<blockquote> |
| 45 | +<i>Recommended practice</i>: |
| 46 | +If evaluation of <tt>sender_in<Sndr></tt> results in |
| 47 | +an uncaught exception from the evaluation of |
| 48 | +<code>get_completion_signatures<Sndr>()</code>, |
| 49 | +the implementation should include information about that exception |
| 50 | +in the resulting diagnostic. |
| 51 | +</blockquote> |
| 52 | +</li> |
| 53 | +</ul> |
| 54 | +</p> |
| 55 | +<p>-25- <i>Returns</i>: |
| 56 | +A prvalue of type |
| 57 | +<tt><i>basic-sender</i><Tag, decay_t<Data>, decay_t<Child>...></tt> |
| 58 | +that has been direct-list-initialized with the forwarded arguments, |
| 59 | +where <i>`basic-sender`</i> is the following exposition-only class template |
| 60 | +except as noted below. |
| 61 | +</p> |
| 62 | +</blockquote> |
| 63 | +</blockquote> |
| 64 | +</li> |
| 65 | +</ol> |
| 66 | + |
| 67 | +</resolution> |
| 68 | + |
| 69 | +</issue> |
0 commit comments