From caec767f40ab8a64384ef2439f9fc9865ad5c7fd Mon Sep 17 00:00:00 2001 From: Mykola Vankovych Date: Mon, 10 Mar 2025 15:40:39 +0100 Subject: [PATCH] Adding fix for incorrect usage of xt::has_assign_conversion in xassign.hpp. --- include/xtensor/xassign.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/xtensor/xassign.hpp b/include/xtensor/xassign.hpp index 2ec698ae6..d56830e79 100644 --- a/include/xtensor/xassign.hpp +++ b/include/xtensor/xassign.hpp @@ -718,7 +718,7 @@ namespace xt using size_type = typename E1::size_type; size_type size = e1.size(); constexpr size_type simd_size = simd_type::size; - constexpr bool needs_cast = has_assign_conversion::value; + constexpr bool needs_cast = has_assign_conversion::value; size_type align_begin = is_aligned ? 0 : xt_simd::get_alignment_offset(e1.data(), size, simd_size); size_type align_end = align_begin + ((size - align_begin) & ~(simd_size - 1)); @@ -1131,7 +1131,7 @@ namespace xt // std::fill(idx.begin(), idx.end(), 0); using e1_value_type = typename E1::value_type; using e2_value_type = typename E2::value_type; - constexpr bool needs_cast = has_assign_conversion::value; + constexpr bool needs_cast = has_assign_conversion::value; using value_type = typename xassign_traits::requested_value_type; using simd_type = std::conditional_t< std::is_same::value,