Skip to content

Commit bf7e62d

Browse files
tomaszkamjwakely
authored andcommitted
Set 4051 to P3
1 parent a413b3d commit bf7e62d

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

xml/issue4051.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<section><sref ref="[cmp.categories]"/></section>
77
<submitter>Corentin Jabot</submitter>
88
<date>31 Jan 2024</date>
9-
<priority>99</priority>
9+
<priority>3</priority>
1010

1111
<discussion>
1212
<p>
@@ -60,6 +60,31 @@ Related vendor issues:
6060
<p/>
6161
<a href="https://github.com/snitch-org/snitch/issues/140">snitch issue 140</a>
6262
</p>
63+
64+
<note>2025-10-23; Reflector poll.</note>
65+
<p>
66+
Set priority to 3 after reflector poll.
67+
</p>
68+
<p>
69+
We should prefer rejecting the undefined expression at compile time,
70+
rather than leading to UB at runtime.
71+
</p>
72+
<p>
73+
There is implementation divergence for SFINAE checks between the standard
74+
library implementations. The `has_a_value(std::strong_ordering::equal)`
75+
is `false` for libstdc++, and `true` for libc++, MSVC:
76+
</p>
77+
<blockquote><pre>
78+
auto has_a_value(const auto&amp; t) {
79+
if constexpr (requires { t.has_value(); }) {
80+
return t.has_value();
81+
} else if (constexpr (requires { t != nullptr; }) {
82+
return t != nullptr;
83+
} else {
84+
return true;
85+
}
86+
}
87+
</pre></blockquote>
6388
</discussion>
6489

6590
<resolution>

0 commit comments

Comments
 (0)