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 588453010c2..3be0d25038f 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 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 0ae8e8d02d5..6148050e1b0 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 diff --git a/libs/core/algorithms/tests/unit/algorithms/uninitialized_relocaten.cpp b/libs/core/algorithms/tests/unit/algorithms/uninitialized_relocaten.cpp index 36fb518df88..d465a7c1c11 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 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 e56c5f0fd7c..a9db7314fe9 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