Skip to content

Commit 3d9988c

Browse files
include/oneapi/dpl/pstl/hetero/numeric_impl_hetero.h - fix broken test case
1 parent 7b35f9e commit 3d9988c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/oneapi/dpl/pstl/hetero/numeric_impl_hetero.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ __pattern_transform_reduce(__hetero_tag<_BackendTag>, _ExecutionPolicy&& __exec,
8080
if (__first == __last)
8181
return __init;
8282

83-
using _Functor = unseq_backend::walk_n<_ExecutionPolicy, _UnaryOperation>;
83+
using _Functor = unseq_backend::walk_n<std::decay_t<_ExecutionPolicy>, _UnaryOperation>;
8484
using _RepackedTp = __par_backend_hetero::__repacked_tuple_t<_Tp>;
8585

8686
auto __keep = oneapi::dpl::__ranges::__get_sycl_range<__par_backend_hetero::access_mode::read, _ForwardIterator>();

0 commit comments

Comments
 (0)