Skip to content

Commit

Permalink
Merge #6353
Browse files Browse the repository at this point in the history
6353: Enable using std::reference_wrapper with executor parameters r=hkaiser a=hkaiser

`@kmoham6` this should resolve the issues you were seeing

Co-authored-by: Hartmut Kaiser <[email protected]>
  • Loading branch information
StellarBot and hkaiser committed Sep 25, 2023
2 parents 2f81937 + 0402530 commit 4a66ce5
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2014-2022 Hartmut Kaiser
// Copyright (c) 2014-2023 Hartmut Kaiser
// Copyright (c) 2016 Marcin Copik
//
// SPDX-License-Identifier: BSL-1.0
Expand Down Expand Up @@ -64,6 +64,12 @@ namespace hpx::parallel::execution {
{
};

template <typename Parameters>
struct extract_has_variable_chunk_size<::std::reference_wrapper<Parameters>>
: extract_has_variable_chunk_size<Parameters>
{
};

template <typename Parameters>
inline constexpr bool extract_has_variable_chunk_size_v =
extract_has_variable_chunk_size<Parameters>::value;
Expand All @@ -88,6 +94,13 @@ namespace hpx::parallel::execution {
};
#endif

template <typename Parameters>
struct extract_invokes_testing_function<
::std::reference_wrapper<Parameters>>
: extract_invokes_testing_function<Parameters>
{
};

template <typename Parameters>
inline constexpr bool extract_invokes_testing_function_v =
extract_invokes_testing_function<Parameters>::value;
Expand Down

0 comments on commit 4a66ce5

Please sign in to comment.