From 7aefb9f4d95e74c9d53fcdf62a3feb8af6145f96 Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Sat, 12 Apr 2025 16:20:09 +0000 Subject: [PATCH] fix memset optimization for std::complex types --- Eigen/src/Core/Fill.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/Fill.h b/Eigen/src/Core/Fill.h index 3b0af91a7..9d4ecd445 100644 --- a/Eigen/src/Core/Fill.h +++ b/Eigen/src/Core/Fill.h @@ -92,7 +92,8 @@ struct eigen_fill_impl { template struct eigen_memset_helper { - static constexpr bool value = std::is_trivial::value && eigen_fill_helper::value; + static constexpr bool value = + std::is_trivially_copyable::value && eigen_fill_helper::value; }; template