[libcxx-commits] [libcxx] [libc++] Implement LWG4072: std::optional comparisons: constrain harder (PR #209968)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 4 00:17:28 PDT 2026


================
@@ -45,9 +69,7 @@ struct X {
   constexpr X(int i) : i_(i) {}
 };
 
-constexpr bool operator==(const X& lhs, const X& rhs) {
-  return lhs.i_ == rhs.i_;
-}
+constexpr bool operator==(const X& lhs, const X& rhs) { return lhs.i_ == rhs.i_; }
----------------
frederick-vs-ja wrote:

We shouldn't format the whole file if we just add new tests. This part is untouched and don't need to reformatted (same in other test files). Let's revert the changes to untouched parts.

https://github.com/llvm/llvm-project/pull/209968


More information about the libcxx-commits mailing list