@@ -354,7 +354,7 @@ struct load_store_test
354354 void run_load_mask_pattern (const V& v, const std::string& name, batch_type& b, const array_type& expected, const std::string& label)
355355 {
356356 constexpr auto mask = xsimd::make_batch_bool_constant<value_type, Generator, typename batch_type::arch_type>();
357- array_type expected_masked{ 0 };
357+ array_type expected_masked { 0 };
358358
359359 for (std::size_t i = 0 ; i < size; ++i)
360360 {
@@ -415,7 +415,7 @@ struct load_store_test
415415 V& expected_masked,
416416 std::true_type)
417417 {
418- const auto sentinel = static_cast <value_type>(37 );
418+ static constexpr auto sentinel = static_cast <value_type>(37 );
419419 V sentinel_expected (size, sentinel);
420420
421421 auto zero_mask = xsimd::make_batch_bool_constant<value_type, mask_none, typename batch_type::arch_type>();
@@ -433,7 +433,8 @@ struct load_store_test
433433 V scratch_slice (res.size ());
434434 std::copy (scratch_ptr, scratch_ptr + scratch_slice.size (), scratch_slice.begin ());
435435 CHECK_VECTOR_EQ (scratch_slice, sentinel_expected);
436- CHECK (std::all_of (scratch.begin (), scratch.end (), [sentinel](value_type v) { return v == sentinel; }));
436+ CHECK (std::all_of (scratch.begin (), scratch.end (), [](const value_type v)
437+ { return v == sentinel; }));
437438
438439 run_store_mask_tests (v, name, b, res, expected_masked, std::true_type {});
439440 }
0 commit comments