mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
fix memset optimization for std::complex types
This commit is contained in:
parent
73ca849a68
commit
7aefb9f4d9
@ -92,7 +92,8 @@ struct eigen_fill_impl<Xpr, /*use_fill*/ true> {
|
||||
|
||||
template <typename Xpr>
|
||||
struct eigen_memset_helper {
|
||||
static constexpr bool value = std::is_trivial<typename Xpr::Scalar>::value && eigen_fill_helper<Xpr>::value;
|
||||
static constexpr bool value =
|
||||
std::is_trivially_copyable<typename Xpr::Scalar>::value && eigen_fill_helper<Xpr>::value;
|
||||
};
|
||||
|
||||
template <typename Xpr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user