[libcxx-commits] [libcxx] [libc++] Implement P2830R10: Standardized Constexpr Type Ordering (PR #216616)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 17 10:25:52 PDT 2026


================
@@ -161,6 +161,10 @@ namespace std {
 #    include <__compare/weak_order.h>
 #  endif // _LIBCPP_STD_VER >= 20
 
+#  if _LIBCPP_STD_VER >= 26 && __has_builtin(__builtin_type_order)
----------------
Zingam wrote:

```suggestion
#  if _LIBCPP_STD_VER >= 26
```
This looks redundant. You check for the built-in in the granularized header.
I assume because this could be a list of multiple headers guarded here.

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


More information about the libcxx-commits mailing list