From: Daniel Arndt Date: Mon, 5 Dec 2022 19:29:10 +0000 (-0500) Subject: Don't use __has_trivial_copy X-Git-Tag: v9.5.0-rc1~760^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14534%2Fhead;p=dealii.git Don't use __has_trivial_copy --- 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