From 868f9592b5ae6fab7255434f92e33f5a9b0d1d56 Mon Sep 17 00:00:00 2001 From: Romain Geissler Date: Wed, 1 Oct 2025 00:05:27 +0000 Subject: [PATCH] Delete boost::math::is_trivial & is_trivial_v. std::is_trivial is deprecated in C++ >+ 26, and these aren't used anywhere in the internal Boost.Math code. --- include/boost/math/tools/type_traits.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/boost/math/tools/type_traits.hpp b/include/boost/math/tools/type_traits.hpp index a13332797b..951f3a1bf8 100644 --- a/include/boost/math/tools/type_traits.hpp +++ b/include/boost/math/tools/type_traits.hpp @@ -52,7 +52,6 @@ using cuda::std::is_member_pointer; // Type properties using cuda::std::is_const; using cuda::std::is_volatile; -using cuda::std::is_trivial; using cuda::std::is_trivially_copyable; using cuda::std::is_standard_layout; using cuda::std::is_empty; @@ -199,7 +198,6 @@ using std::is_member_pointer; // Type properties using std::is_const; using std::is_volatile; -using std::is_trivial; using std::is_trivially_copyable; using std::is_standard_layout; using std::is_empty; @@ -380,9 +378,6 @@ BOOST_MATH_INLINE_CONSTEXPR bool is_const_v = boost::math::is_const::value; template BOOST_MATH_INLINE_CONSTEXPR bool is_volatile_v = boost::math::is_volatile::value; -template -BOOST_MATH_INLINE_CONSTEXPR bool is_trivial_v = boost::math::is_trivial::value; - template BOOST_MATH_INLINE_CONSTEXPR bool is_trivially_copyable_v = boost::math::is_trivially_copyable::value;