@@ -334,7 +334,7 @@ namespace xt
334334
335335 static constexpr bool is_bool_conversion () { return is_bool<e2_value_type>::value && !is_bool<e1_value_type>::value; }
336336 static constexpr bool contiguous_layout () { return E1 ::contiguous_layout && E2 ::contiguous_layout; }
337- static constexpr bool convertible_types () { return std::is_convertible<e2_value_type, e1_value_type>::value
337+ static constexpr bool convertible_types () { return std::is_convertible<e2_value_type, e1_value_type>::value
338338 && !is_bool_conversion (); }
339339
340340 static constexpr bool use_xsimd () { return xt_simd::simd_traits<int8_t >::size > 1 ; }
@@ -345,7 +345,7 @@ namespace xt
345345 static constexpr bool simd_interface () { return has_simd_interface<E2 , requested_value_type>(); }
346346
347347 public:
348-
348+
349349 // constexpr methods instead of constexpr data members avoid the need of definitions at namespace
350350 // scope of these data members (since they are odr-used).
351351
@@ -565,13 +565,13 @@ namespace xt
565565 template <class E1 , class E2 , layout_type L>
566566 inline void stepper_assigner<E1 , E2 , L>::run()
567567 {
568- using size_type = typename E1 ::size_type;
568+ using tmp_size_type = typename E1 ::size_type;
569569 using argument_type = std::decay_t <decltype (*m_rhs)>;
570570 using result_type = std::decay_t <decltype (*m_lhs)>;
571571 constexpr bool needs_cast = has_assign_conversion<argument_type, result_type>::value;
572572
573- size_type s = m_e1.size ();
574- for (size_type i = 0 ; i < s; ++i)
573+ tmp_size_type s = m_e1.size ();
574+ for (tmp_size_type i = 0 ; i < s; ++i)
575575 {
576576 *m_lhs = conditional_cast<needs_cast, result_type>(*m_rhs);
577577 stepper_tools<L>::increment_stepper (*this , m_index, m_e1.shape ());
@@ -906,7 +906,7 @@ namespace xt
906906 std::size_t inner_loop_size, outer_loop_size, cut;
907907 std::tie (inner_loop_size, outer_loop_size, cut) = strided_assign_detail::get_loop_sizes (e1 , e2 , is_row_major);
908908
909- if ((is_row_major && cut == e1 .dimension ()) || (!is_row_major && cut == 0 ))
909+ if ((is_row_major && cut == e1 .dimension ()) || (!is_row_major && cut == 0 ))
910910 {
911911 return fallback_assigner (e1 , e2 ).run ();
912912 }
0 commit comments