[libcxx-commits] [libcxx] [libc++] Implement LWG4072: std::optional comparisons: constrain harder (PR #209968)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Sep 5 19:50:58 PDT 2026
================
----------------
frederick-vs-ja wrote:
It's better to simplify this sentence (same for other test files). See:
- https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements
```suggestion
if constexpr (requires { t == u; })
return t == u;
else
return {};
```
https://github.com/llvm/llvm-project/pull/209968
More information about the libcxx-commits
mailing list