[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
================
@@ -42,11 +42,13 @@ static_assert(std::is_integral<ptrdiff_t>::value, "");
static_assert((std::is_same<decltype(nullptr), nullptr_t>::value), "");
static_assert(sizeof(nullptr_t) == sizeof(void*), "");
#if TEST_STD_VER >= 11
-# if TEST_STD_VER >= 20
-// P0767
-static_assert(std::is_trivial<max_align_t>::value, "");
+static_assert(std::is_trivially_copyable<max_align_t>::value, "");
+static_assert(std::is_trivially_default_constructible<max_align_t>::value, "");
static_assert(std::is_standard_layout<max_align_t>::value, "");
-# else
+# if TEST_STD_VER < 26 // P3247R2
+static_assert(std::is_trivial<max_align_t>::value, "");
+# endif
----------------
philnik777 wrote:
I don't think this is necessary. We're testing `max_align_t`, not the type traits.
https://github.com/llvm/llvm-project/pull/130573
More information about the libcxx-commits
mailing list