Skip to content

Commit 97454e4

Browse files
committed
removing unnecessary and harmful move of temp obj
Signed-off-by: Dan Hoeflinger <[email protected]>
1 parent c0849fd commit 97454e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/oneapi/dpl/pstl/parallel_backend_tbb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ __parallel_transform_reduce(oneapi::dpl::__internal::__tbb_backend_tag, _Executi
195195
// The grain size of 3 is used in order to provide minimum 2 elements for each body
196196
tbb::this_task_arena::isolate(
197197
[__first, __last, &__body]() { tbb::parallel_reduce(tbb::blocked_range<_Index>(__first, __last, 3), __body); });
198-
return std::move(__body.sum());
198+
return __body.sum();
199199
}
200200

201201
//------------------------------------------------------------------------

0 commit comments

Comments
 (0)