Skip to content

Commit

Permalink
Enable using std::reference_wrapper with executor parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Sep 21, 2023
1 parent c8ea2c7 commit 0402530
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 0402530

Please sign in to comment.