[libcxx-commits] [libcxx] [libc++] Implement LWG4072: std::optional comparisons: constrain harder (PR #209968)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Sep 1 22:47:16 PDT 2026
================
@@ -349,6 +350,151 @@ struct ImplicitBool {
constexpr ImplicitBool operator==(ImplicitBool::E1 lhs, ImplicitBool::E2 rhs) { return {lhs.x == rhs.y}; }
+ // LWG-4072 "std::optional comparisons: constrain harder"
+namespace lwg4072 {
----------------
frederick-vs-ja wrote:
It seems that we don't need to add these here, and should split these into 6 test files in `libcxx/test/std/utilities/optional/optional.comp_with_t`.
https://github.com/llvm/llvm-project/pull/209968
More information about the libcxx-commits
mailing list