Skip to content

Commit 76e9d8b

Browse files
tomjnixonserge-sans-paille
authored andcommitted
fix fast_cast selection
Previously, this tested for fast_cast with plain types rather than batches, so fast_cast was never selected. This was introduced in be17575 "Fixed rebase issues". Fixes #626
1 parent 249ecd8 commit 76e9d8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/xsimd/arch/generic/xsimd_generic_details.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ namespace xsimd {
136136

137137
template <class A, class From, class To>
138138
struct conversion_type_impl<A, From, To,
139-
void_t<decltype(fast_cast(std::declval<const From&>(), std::declval<const To&>(), std::declval<const A&>()))>>
139+
void_t<decltype(fast_cast(std::declval<const batch<From, A>&>(),
140+
std::declval<const batch<To, A>&>(),
141+
std::declval<const A&>()))>>
140142
{
141143
using type = with_fast_conversion;
142144
};

0 commit comments

Comments
 (0)