Skip to content

Commit

Permalink
Merge pull request #6380 from STEllAR-GROUP/execution_policy_annotation
Browse files Browse the repository at this point in the history
Fixing setting an annotation for an execution policy
  • Loading branch information
hkaiser authored Nov 8, 2023
2 parents 4ef2794 + faa99de commit 6b47c6e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <hpx/execution/traits/is_execution_policy.hpp>
#include <hpx/executors/annotating_executor.hpp>
#include <hpx/functional/tag_invoke.hpp>
#include <hpx/functional/traits/is_invocable.hpp>
#include <hpx/properties/property.hpp>

#include <string>
Expand All @@ -29,7 +30,7 @@ namespace hpx::execution::experimental {
template <typename ExPolicy,
HPX_CONCEPT_REQUIRES_(
hpx::is_execution_policy_v<ExPolicy> &&
hpx::functional::is_tag_invocable_v<
hpx::is_invocable_v<
hpx::execution::experimental::with_annotation_t,
typename std::decay_t<ExPolicy>::executor_type,
const char*>
Expand All @@ -50,7 +51,7 @@ namespace hpx::execution::experimental {
template <typename ExPolicy,
HPX_CONCEPT_REQUIRES_(
hpx::is_execution_policy_v<ExPolicy> &&
hpx::functional::is_tag_invocable_v<
hpx::is_invocable_v<
hpx::execution::experimental::with_annotation_t,
typename std::decay_t<ExPolicy>::executor_type,
std::string>
Expand All @@ -72,7 +73,7 @@ namespace hpx::execution::experimental {
template <typename ExPolicy,
HPX_CONCEPT_REQUIRES_(
hpx::is_execution_policy_v<ExPolicy> &&
hpx::functional::is_tag_invocable_v<
hpx::is_invocable_v<
hpx::execution::experimental::get_annotation_t,
typename std::decay_t<ExPolicy>::executor_type>
)>
Expand Down

0 comments on commit 6b47c6e

Please sign in to comment.