Skip to content

Commit

Permalink
fix explicit specialization in non-namespace scope
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorostsa committed Jun 4, 2024
1 parent 35339c5 commit 8945172
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,18 @@ namespace hpx::when_all_vector_detail {
};

#ifdef HPX_HAVE_STDEXEC
template <typename T>
// Dummy parameter introduced to please GCC11 which enforces
// explicit specialization in non-namespace scope as an error.
// Reference: https://cplusplus.com/forum/general/58906/#msg318049
template <typename T, typename Dummy = void>
struct set_value_completion_helper
{
using type = hpx::execution::experimental::set_value_t(
std::vector<T>);
};

template <>
struct set_value_completion_helper<void>
template <typename Dummy>
struct set_value_completion_helper<void, Dummy>
{
using type = hpx::execution::experimental::set_value_t();
};
Expand Down

0 comments on commit 8945172

Please sign in to comment.