You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/issue4308.xml
+76-2Lines changed: 76 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,8 @@ The aliases shouldn't be defined for non-object types, but probably harmless."
38
38
<p>
39
39
<tt>optional<T&></tt> doesn't currently allow incomplete types anyway.
40
40
</p>
41
-
</discussion>
42
41
43
-
<resolution>
42
+
<superseded>
44
43
<p>
45
44
This wording is relative to <papernum="N5014"/>.
46
45
</p>
@@ -79,7 +78,82 @@ type because it is not an actual iterator type. — <i>end note</i>]</ins>
79
78
80
79
</li>
81
80
81
+
</ol>
82
+
</superseded>
83
+
84
+
<note>2025-11-06, Tomasz provides updated</note>
85
+
</discussion>
86
+
87
+
<resolution>
88
+
89
+
<ol>
90
+
91
+
<li><p>Modify <srefref="[optional.optional.ref.general]"/> as indicated:</p>
92
+
<blockquote>
93
+
<pre>
94
+
namespace std {
95
+
template<class T>
96
+
class optional<T&> {
97
+
public:
98
+
using value_type = T;
99
+
using iterator = implementation-defined; // <ins>present only if T is object type other than array of unknown bound;</ins> see [optional.ref.iterators]
0 commit comments