[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:00:58 PDT 2026


================

----------------
frederick-vs-ja wrote:

> Can we just use `requires` instead? The context is C++26?

I'm not sure whether we want the C++26 context, maybe we should test these with `LIBCPP_STATIC_ASSERT` in C++17~23 and `static_assert` since C++26. I think we intend to implement the constraints in C++17 mode.

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


More information about the libcxx-commits mailing list