From 7cba45839e0f5739c2a0fa57c214c651875d20b7 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 5 Dec 2022 14:29:10 -0500 Subject: [PATCH] Don't use __has_trivial_copy --- include/deal.II/lac/vector_operations_internal.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/include/deal.II/lac/vector_operations_internal.h b/include/deal.II/lac/vector_operations_internal.h index d40e9c91b7..10ecc4f860 100644 --- a/include/deal.II/lac/vector_operations_internal.h +++ b/include/deal.II/lac/vector_operations_internal.h @@ -247,17 +247,12 @@ namespace internal { Assert(end >= begin, ExcInternalError()); -#if __GNUG__ && __GNUC__ < 5 - if (__has_trivial_copy(Number) && - std::is_same::value) -#else -# ifdef DEAL_II_HAVE_CXX17 +#ifdef DEAL_II_HAVE_CXX17 if constexpr (std::is_trivially_copyable() && std::is_same::value) -# else +#else if (std::is_trivially_copyable() && std::is_same::value) -# endif #endif std::memcpy(dst + begin, src + begin, (end - begin) * sizeof(Number)); else -- 2.39.5