Skip to content

Commit c0849fd

Browse files
committed
fix serial backend
Signed-off-by: Dan Hoeflinger <[email protected]>
1 parent 8b593a9 commit c0849fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/oneapi/dpl/pstl/parallel_backend_serial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ _Tp
112112
__parallel_transform_reduce(oneapi::dpl::__internal::__serial_backend_tag, _ExecutionPolicy&&, _Index __first,
113113
_Index __last, _UnaryOp, _Tp __init, _BinaryOp, _Reduce __reduce)
114114
{
115-
return __reduce(__first, __last, __init);
115+
return __reduce(__first, __last, std::move(__init));
116116
}
117117

118118
template <class _ExecutionPolicy, typename _Index, typename _Tp, typename _Rp, typename _Cp, typename _Sp, typename _Ap>

0 commit comments

Comments
 (0)