Skip to content

Commit 2aacfa2

Browse files
committed
Add additional suggestion from Eric N. to 2962
1 parent 5aaf5bf commit 2aacfa2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

xml/issue2962.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,21 @@ that return prvalues that a prvalue is not bindable to a volatile reference.
163163
<note>2018-11 San Diego Thursday night issue processing</note>
164164
<p>Look at Ranges; EricWF to investigate. Status to Open</p>
165165

166+
<note>2025-10-15; additional suggestion from Eric Niebler during 2018-04 discussion</note>
167+
<p>
168+
Regarding the issue of whether `int volatile*` is an iterator or not,
169+
I think the best way to solve the problem is with the `common_reference_t`
170+
type trait.
171+
The return type for `*a` could be
172+
"`reference`, where
173+
<code>common_reference_t&lt;reference&amp;&amp;, T&amp;&gt;</code>
174+
is well-formed"
175+
and for `*r++` could be:
176+
"A type `U`, where
177+
<code>common_reference_t&lt;U&amp;&amp;, T&amp;&gt;</code>
178+
is well-formed".
179+
</p>
180+
166181
<p>
167182
<strong>Previous resolution [SUPERSEDED]:</strong>
168183
</p>

0 commit comments

Comments
 (0)