[libcxx-commits] [libcxx] [libc++] Implement LWG4406: value_or return statement is inconsistent with Mandates (PR #189568)
Fernando Pelliccioni via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 7 11:20:00 PDT 2026
================
@@ -49,6 +49,19 @@ constexpr bool test() {
assert(x == 10);
}
+ // LWG3424: return type is remove_cv_t<T>
+ {
+ const std::expected<const int, int> e(5);
----------------
fpelliccioni wrote:
Done!
https://github.com/llvm/llvm-project/pull/189568
More information about the libcxx-commits
mailing list