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 757b5ccda4ec..f31df1a42e81 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 @@ -199,17 +199,12 @@ namespace hpx::parallel { Iter sequential_uninitialized_default_construct( ExPolicy&&, Iter first, Sent last) { - using value_type = - typename std::iterator_traits::value_type; + using value_type = typename std::iterator_traits::value_type; return util::loop_with_cleanup( HPX_FORWARD(ExPolicy, policy), first, last, - [](InIter it) -> void { - ::new (std::addressof(*it)) value_type; - }, - [](InIter it) -> void { - std::destroy_at(std::addressof(*it)); - }); + [](Iter it) -> void { ::new (std::addressof(*it)) value_type; }, + [](Iter it) -> void { std::destroy_at(std::addressof(*it)); }); } template diff --git a/libs/core/algorithms/include/hpx/parallel/util/transfer.hpp b/libs/core/algorithms/include/hpx/parallel/util/transfer.hpp index af82bf1b30e6..eef8bf198b6d 100644 --- a/libs/core/algorithms/include/hpx/parallel/util/transfer.hpp +++ b/libs/core/algorithms/include/hpx/parallel/util/transfer.hpp @@ -373,7 +373,7 @@ namespace hpx::parallel::util { typename std::iterator_traits::value_type; return in_out_result{std::next(first, num), - loop_with_cleanup_n::call( + hpx::parallel::util::loop_with_cleanup_n::call( HPX_FORWARD(ExPolicy, policy), first, num, dest, [](InIter it) -> void { hpx::construct_at(std::addressof(*current), *first); @@ -434,7 +434,7 @@ namespace hpx::parallel::util { typename std::iterator_traits::value_type; return in_out_result{std::next(first, num), - util::loop_with_cleanup_n::call( + hpx::parallel::util::loop_with_cleanup_n::call( HPX_FORWARD(ExPolicy, policy), first, num, dest, [](InIter it) -> void { hpx::construct_at(