From 15e89648b5f41002ea4ff41a9b4b42e9c2b700e5 Mon Sep 17 00:00:00 2001 From: Hari Hara Naveen S Date: Mon, 24 Jul 2023 04:56:13 -0500 Subject: [PATCH] requested changes Signed-off-by: Hari Hara Naveen S --- .../parallel/algorithms/uninitialized_default_construct.hpp | 3 +-- .../include/hpx/parallel/algorithms/uninitialized_move.hpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_default_construct.hpp b/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_default_construct.hpp index 1a852004bd03..ceab0f25b5b2 100644 --- a/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_default_construct.hpp +++ b/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_default_construct.hpp @@ -239,13 +239,12 @@ namespace hpx::parallel { } using partition_result_type = std::pair; - util::cancellation_token tok; return util::partitioner_with_cleanup:: 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( diff --git a/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_move.hpp b/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_move.hpp index 19d49746e327..1422be66b4b8 100644 --- a/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_move.hpp +++ b/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_move.hpp @@ -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();