File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 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& 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 >
You can’t perform that action at this time.
0 commit comments