Skip to content

Commit

Permalink
Merge pull request #6590 from G-071/fix_nvcc_noexcept
Browse files Browse the repository at this point in the history
Add device guard for noexcept
  • Loading branch information
hkaiser authored Dec 17, 2024
2 parents 10d93d2 + 8a98f45 commit f749e80
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libs/core/execution/include/hpx/execution/algorithms/just.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,12 @@ namespace hpx::execution::experimental {
}

template <typename Receiver>
friend auto
tag_invoke(connect_t, just_sender& s, Receiver&& receiver) noexcept(
util::all_of_v<std::is_nothrow_copy_constructible<Ts>...>)
friend auto tag_invoke(
connect_t, just_sender& s, Receiver&& receiver)
#if !defined(HPX_COMPUTE_DEVICE_CODE)
noexcept(
util::all_of_v<std::is_nothrow_copy_constructible<Ts>...>)
#endif
{
return operation_state<Receiver>{
HPX_FORWARD(Receiver, receiver), s.ts};
Expand Down

0 comments on commit f749e80

Please sign in to comment.