[libcxx-commits] [libcxx] [libcxxabi] [libc++] P3247R2: Deprecate `is_trivial(_v)` (PR #130573)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 10 06:49:11 PDT 2025


================
@@ -45,7 +46,8 @@ struct __aliasing_iterator_wrapper {
     using reference         = value_type&;
     using pointer           = value_type*;
 
-    static_assert(is_trivial<value_type>::value);
+    static_assert(is_trivially_default_constructible<value_type>::value);
+    static_assert(is_trivially_constructible<value_type>::value);
----------------
philnik777 wrote:

This should probably be `is_trivially_copyable`.

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


More information about the libcxx-commits mailing list