Skip to content

Commit 6b47c6e

Browse files
authored
Merge pull request #6380 from STEllAR-GROUP/execution_policy_annotation
Fixing setting an annotation for an execution policy
2 parents 4ef2794 + faa99de commit 6b47c6e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libs/core/executors/include/hpx/executors/execution_policy_annotation.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <hpx/execution/traits/is_execution_policy.hpp>
1616
#include <hpx/executors/annotating_executor.hpp>
1717
#include <hpx/functional/tag_invoke.hpp>
18+
#include <hpx/functional/traits/is_invocable.hpp>
1819
#include <hpx/properties/property.hpp>
1920

2021
#include <string>
@@ -29,7 +30,7 @@ namespace hpx::execution::experimental {
2930
template <typename ExPolicy,
3031
HPX_CONCEPT_REQUIRES_(
3132
hpx::is_execution_policy_v<ExPolicy> &&
32-
hpx::functional::is_tag_invocable_v<
33+
hpx::is_invocable_v<
3334
hpx::execution::experimental::with_annotation_t,
3435
typename std::decay_t<ExPolicy>::executor_type,
3536
const char*>
@@ -50,7 +51,7 @@ namespace hpx::execution::experimental {
5051
template <typename ExPolicy,
5152
HPX_CONCEPT_REQUIRES_(
5253
hpx::is_execution_policy_v<ExPolicy> &&
53-
hpx::functional::is_tag_invocable_v<
54+
hpx::is_invocable_v<
5455
hpx::execution::experimental::with_annotation_t,
5556
typename std::decay_t<ExPolicy>::executor_type,
5657
std::string>
@@ -72,7 +73,7 @@ namespace hpx::execution::experimental {
7273
template <typename ExPolicy,
7374
HPX_CONCEPT_REQUIRES_(
7475
hpx::is_execution_policy_v<ExPolicy> &&
75-
hpx::functional::is_tag_invocable_v<
76+
hpx::is_invocable_v<
7677
hpx::execution::experimental::get_annotation_t,
7778
typename std::decay_t<ExPolicy>::executor_type>
7879
)>

0 commit comments

Comments
 (0)