[libcxx-commits] [libcxx] Fix LWG issue4481 disallow chrono::duration<const T, P> (PR #207558)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 4 23:02:39 PDT 2026


================
@@ -22,6 +22,11 @@
 #include <limits>
 #include <ratio>
 
+#if _LIBCPP_STD_VER >= 26
+#  include <__type_traits/is_same.h>
+#  include <__type_traits/remove_cv.h>
+#endif
+
----------------
Zingam wrote:

Typically we don't include conditinally.
```suggestion
#  include <__type_traits/is_same.h>
#  include <__type_traits/remove_cv.h>

```

Includes should be sorted.

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


More information about the libcxx-commits mailing list