[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:10 PDT 2025


================
@@ -16,9 +16,13 @@
 
 #include "test_macros.h"
 
-static_assert(std::is_trivial<std::max_align_t>::value, "");
+static_assert(std::is_trivially_copyable<std::max_align_t>::value, "");
+static_assert(std::is_trivially_default_constructible<std::max_align_t>::value, "");
 static_assert(std::is_standard_layout<std::max_align_t>::value, "");
-#if TEST_STD_VER <= 17
+#if TEST_STD_VER < 26 // P3247R2
+static_assert(std::is_trivial<std::max_align_t>::value, "");
+#endif
----------------
philnik777 wrote:

Again, no need to test the trait.

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


More information about the libcxx-commits mailing list