We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b35f9e commit 3d9988cCopy full SHA for 3d9988c
include/oneapi/dpl/pstl/hetero/numeric_impl_hetero.h
@@ -80,7 +80,7 @@ __pattern_transform_reduce(__hetero_tag<_BackendTag>, _ExecutionPolicy&& __exec,
80
if (__first == __last)
81
return __init;
82
83
- using _Functor = unseq_backend::walk_n<_ExecutionPolicy, _UnaryOperation>;
+ using _Functor = unseq_backend::walk_n<std::decay_t<_ExecutionPolicy>, _UnaryOperation>;
84
using _RepackedTp = __par_backend_hetero::__repacked_tuple_t<_Tp>;
85
86
auto __keep = oneapi::dpl::__ranges::__get_sycl_range<__par_backend_hetero::access_mode::read, _ForwardIterator>();
0 commit comments