Skip to content

Commit

Permalink
namespace errors
Browse files Browse the repository at this point in the history
Signed-off-by: Hari Hara Naveen S <[email protected]>
  • Loading branch information
Hari Hara Naveen S committed Jul 16, 2023
1 parent c1dc43f commit aed9825
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,12 @@ namespace hpx::parallel {
Iter sequential_uninitialized_default_construct(
ExPolicy&&, Iter first, Sent last)
{
using value_type =
typename std::iterator_traits<InIter>::value_type;
using value_type = typename std::iterator_traits<Iter>::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 <typename ExPolicy, typename InIter>
Expand Down
4 changes: 2 additions & 2 deletions libs/core/algorithms/include/hpx/parallel/util/transfer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ namespace hpx::parallel::util {
typename std::iterator_traits<InIter>::value_type;

return in_out_result<InIter, OutIter>{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);
Expand Down Expand Up @@ -434,7 +434,7 @@ namespace hpx::parallel::util {
typename std::iterator_traits<InIter>::value_type;

return in_out_result<InIter, OutIter>{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(
Expand Down

0 comments on commit aed9825

Please sign in to comment.