-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
pstlIssues related to the C++17 Parallel STLIssues related to the C++17 Parallel STL
Description
All of reduce, transform_reduce, exclusive_scan, and inclusive_scan, transform_exclusive_scan, and transform_inclusive_scan only have a precondition on the type of init that it meets the Cpp17MoveConstructible requirements, so when passing it to the next internal function it needs to be moved, not copied:
return transform_inclusive_scan(std::forward<_ExecutionPolicy>(__exec), __first, __last, __result, __binary_op,
- __pstl::__internal::__no_op(), __init);
+ __pstl::__internal::__no_op(), std::move(__init));e.g.
| return transform_reduce(std::forward<_ExecutionPolicy>(__exec), __first, __last, __init, __binary_op, |
Metadata
Metadata
Assignees
Labels
pstlIssues related to the C++17 Parallel STLIssues related to the C++17 Parallel STL