[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:12 PDT 2025
================
@@ -19,12 +19,12 @@
_LIBCPP_BEGIN_NAMESPACE_STD
template <class _Tp>
-struct _LIBCPP_TEMPLATE_VIS _LIBCPP_NO_SPECIALIZATIONS is_trivial : public integral_constant<bool, __is_trivial(_Tp)> {
-};
+struct _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX26 _LIBCPP_NO_SPECIALIZATIONS is_trivial
----------------
philnik777 wrote:
I'd really like to see a message like `Consider using is_trivially_copyable<T>::value && is_trivially_default_constructible<T>::value instead`.
https://github.com/llvm/llvm-project/pull/130573
More information about the libcxx-commits
mailing list