Skip to content

Commit 5d36176

Browse files
committed
New issue from Eric Niebler: enable-sender should be a variable template
1 parent 4854977 commit 5d36176

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

xml/issue4202.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='no'?>
2+
<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3+
4+
<issue num="4202" status="New">
5+
<title><i><code>enable-sender</code></i> should be a variable template</title>
6+
<section><sref ref="[exec.snd.concepts]"/></section>
7+
<submitter>Eric Niebler</submitter>
8+
<date>03 Feb 2025</date>
9+
<priority>99</priority>
10+
11+
<discussion>
12+
<p>
13+
Imported from <a href="https://github.com/cplusplus/sender-receiver/issues/305">cplusplus/sender-receiver #305</a>.
14+
</p>
15+
<p>
16+
We require an opt-in to satisfy the `sender` concept.
17+
Making your type awaitable with an empty environment is one way to opt in.
18+
If your awaitable requires an environment, you have two options:
19+
<ul>
20+
<li>give your awaitable type a nested `sender_concept` typedef, or</li>
21+
<li>specialize `enable_sender` for your awaitable type.</li>
22+
</ul>
23+
The problem is that somewhere along the way,
24+
the `enable_sender` variable template was turned into
25+
an exposition-only <i><code>enable-sender</code></i> concept.
26+
We should roll back that change.
27+
</p>
28+
</discussion>
29+
30+
<resolution>
31+
<p>
32+
</p>
33+
</resolution>
34+
35+
</issue>

0 commit comments

Comments
 (0)