Skip to content

Commit 3c2496f

Browse files
committed
Use hpx::invoke instead of HPX_INVOKE to appease gcc
Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
1 parent 29a5fe5 commit 3c2496f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

libs/core/algorithms/include/hpx/parallel/algorithms/for_each_index.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ namespace hpx { namespace experimental {
7373
#else
7474

7575
#include <hpx/config.hpp>
76-
#include <hpx/functional/invoke.hpp>
7776
#include <hpx/modules/concepts.hpp>
7877
#include <hpx/modules/execution.hpp>
7978
#include <hpx/modules/executors.hpp>
@@ -110,7 +109,7 @@ namespace hpx::parallel::detail {
110109
{
111110
if constexpr (RankIdx == Mapping::rank())
112111
{
113-
HPX_INVOKE(f, idx...);
112+
hpx::invoke(f, idx...);
114113
}
115114
else if constexpr (RankIdx == Mapping::rank() - 1)
116115
{
@@ -121,7 +120,7 @@ namespace hpx::parallel::detail {
121120
hpx::util::counting_iterator<std::size_t> first(std::size_t{0});
122121
hpx::parallel::util::loop_n<std::decay_t<ExPolicy>>(
123122
first, bound, [&](auto const& it) {
124-
HPX_INVOKE(f, idx..., static_cast<index_type>(*it));
123+
hpx::invoke(f, idx..., static_cast<index_type>(*it));
125124
});
126125
}
127126
else
@@ -227,7 +226,7 @@ namespace hpx::parallel::detail {
227226
hpx::util::counting_iterator<std::size_t> first(std::size_t{0});
228227
hpx::parallel::util::loop_n<std::decay_t<ExPolicy>>(
229228
first, bound, [&](auto const& it) {
230-
HPX_INVOKE(f, static_cast<index_type>(*it), idx...);
229+
hpx::invoke(f, static_cast<index_type>(*it), idx...);
231230
});
232231
}
233232
else
@@ -345,7 +344,7 @@ namespace hpx::parallel::detail {
345344
// rank-0: exactly one invocation - execute sequentially.
346345
if constexpr (Mapping::rank() == 0)
347346
{
348-
HPX_INVOKE(f);
347+
hpx::invoke(f);
349348
return util::detail::algorithm_result<ExPolicy>::get();
350349
}
351350
else

0 commit comments

Comments
 (0)