diff --git a/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_relocate.hpp b/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_relocate.hpp index 588453010c29..3be0d25038f0 100644 --- a/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_relocate.hpp +++ b/libs/core/algorithms/include/hpx/parallel/algorithms/uninitialized_relocate.hpp @@ -446,7 +446,7 @@ namespace hpx::parallel { hpx::experimental::util::uninitialized_relocate_primitive( first, last, dest); - return util::in_out_result{first_advanced, + return util::in_out_result{first_advanced, dest_advanced}; } @@ -507,7 +507,7 @@ namespace hpx::parallel { hpx::experimental::util::uninitialized_relocate_backward_primitive( first, last, dest_last); - return util::in_out_result{last_advanced, + return util::in_out_result{last_advanced, dest_last_advanced}; } @@ -731,10 +731,10 @@ namespace hpx::experimental { { static_assert(hpx::traits::is_bidirectional_iterator_v && "The 'first' and 'last' arguments must meet the requirements " - "of input iterators."); + "of bidirectional iterators."); static_assert(hpx::traits::is_bidirectional_iterator_v, "The 'dest_last' argument must meet the requirements of a " - "forward iterator."); + "bidirectional iterator."); static_assert(util::detail::relocation_traits::valid_relocation, "Relocating from this source type to this destination type is " @@ -766,10 +766,10 @@ namespace hpx::experimental { BiIter2 dest_last) noexcept(util::detail::relocation_traits::is_noexcept_relocatable_v) { - static_assert(hpx::traits::is_input_iterator_v, + static_assert(hpx::traits::is_bidirectional_iterator_v, "The 'first' and 'last' arguments must meet the requirements " "of bidirectional iterators."); - static_assert(hpx::traits::is_forward_iterator_v, + static_assert(hpx::traits::is_bidirectional_iterator_v, "The 'dest' argument must meet the requirements of a " "bidirectional iterator."); static_assert(util::detail::relocation_traits #include +#include #include #include +#include constexpr int N = 500; // number of objects to construct constexpr int M = 200; // number of objects to relocate @@ -207,7 +209,7 @@ std::pair setup() } template -void test(Ex&& ex) +void test() { { // Non-overlapping trivially relocatable auto [ptr1, ptr2] = setup(); @@ -510,8 +512,8 @@ void test_overlapping() int hpx_main() { - test<>(hpx::execution::seq); - test<>(hpx::execution::par); + test(); + test(); test_overlapping(); diff --git a/libs/core/algorithms/tests/unit/algorithms/uninitialized_relocate_backward.cpp b/libs/core/algorithms/tests/unit/algorithms/uninitialized_relocate_backward.cpp index 0ae8e8d02d57..aef16e247da7 100644 --- a/libs/core/algorithms/tests/unit/algorithms/uninitialized_relocate_backward.cpp +++ b/libs/core/algorithms/tests/unit/algorithms/uninitialized_relocate_backward.cpp @@ -9,8 +9,10 @@ #include #include +#include #include #include +#include constexpr int N = 50; // number of objects to construct constexpr int M = 20; // number of objects to relocate @@ -207,7 +209,7 @@ std::pair setup() } template -void test(Ex&& ex) +void test() { { // Non-overlapping trivially relocatable auto [ptr1, ptr2] = setup(); @@ -509,8 +511,8 @@ void test_overlapping() int hpx_main() { - test<>(hpx::execution::seq); - test<>(hpx::execution::par); + test(); + test(); test_overlapping(); diff --git a/libs/core/algorithms/tests/unit/algorithms/uninitialized_relocaten.cpp b/libs/core/algorithms/tests/unit/algorithms/uninitialized_relocaten.cpp index 36fb518df884..65dbad00aae3 100644 --- a/libs/core/algorithms/tests/unit/algorithms/uninitialized_relocaten.cpp +++ b/libs/core/algorithms/tests/unit/algorithms/uninitialized_relocaten.cpp @@ -9,8 +9,10 @@ #include #include +#include #include #include +#include constexpr int N = 500; // number of objects to construct constexpr int M = 200; // number of objects to relocate @@ -207,7 +209,7 @@ std::pair setup() } template -void test(Ex&& ex) +void test() { { // Non-overlapping trivially relocatable auto [ptr1, ptr2] = setup(); @@ -510,8 +512,8 @@ void test_overlapping() int hpx_main() { - test<>(hpx::execution::seq); - test<>(hpx::execution::par); + test(); + test(); test_overlapping(); diff --git a/libs/core/type_support/tests/unit/uninitialized_relocate_n_primitive.cpp b/libs/core/type_support/tests/unit/uninitialized_relocate_n_primitive.cpp index e56c5f0fd7c2..a9db7314fe90 100644 --- a/libs/core/type_support/tests/unit/uninitialized_relocate_n_primitive.cpp +++ b/libs/core/type_support/tests/unit/uninitialized_relocate_n_primitive.cpp @@ -7,7 +7,7 @@ #include #include #include -#include +#include #define N 50 #define K 10