Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
Signed-off-by: Hari Hara Naveen S <[email protected]>
  • Loading branch information
Johan511 committed Jul 24, 2023
1 parent 7202338 commit 15e8964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,12 @@ namespace hpx::parallel {
}

using partition_result_type = std::pair<FwdIter, FwdIter>;
util::cancellation_token<util::detail::no_data> tok;

return util::partitioner_with_cleanup<ExPolicy, FwdIter,
partition_result_type>::
call(
HPX_FORWARD(ExPolicy, policy), first, count,
[tok, policy](FwdIter it, std::size_t part_size) mutable
[policy](FwdIter it, std::size_t part_size) mutable
-> partition_result_type {
return std::make_pair(it,
sequential_uninitialized_default_construct_n(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ namespace hpx::parallel {
call(
HPX_FORWARD(ExPolicy, policy), zip_iterator(first, dest),
count,
[&policy](zip_iterator t, std::size_t part_size) mutable
[policy](zip_iterator t, std::size_t part_size) mutable
-> partition_result_type {
using hpx::get;
auto iters = t.get_iterator_tuple();
Expand Down

0 comments on commit 15e8964

Please sign in to comment.