Skip to content

Commit

Permalink
Try to fix gcc build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ispeters committed Sep 3, 2024
1 parent 258ef37 commit a2e305c
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions include/unifex/sender_concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,18 +277,6 @@ struct _fn {
std::invoke_result_t<_impl<false>, S, _inject::receiver_t<R>>,
R>;

template <>
struct _impl<true> {
template <typename S, typename R>
auto operator()(S&& s, R&& r) const
noexcept(noexcept(_inject::make_op_wrapper(
std::forward<S>(s), std::forward<R>(r), _impl<false>{})))
-> op_t<S, R> {
return _inject::make_op_wrapper(
std::forward<S>(s), std::forward<R>(r), _impl<false>{});
}
};

public:
template(
typename S,
Expand All @@ -306,6 +294,17 @@ struct _fn {
}
};

template <>
struct _fn::_impl<true> {
template <typename S, typename R>
auto
operator()(S&& s, R&& r) const noexcept(noexcept(_inject::make_op_wrapper(
std::forward<S>(s), std::forward<R>(r), _impl<false>{}))) -> op_t<S, R> {
return _inject::make_op_wrapper(
std::forward<S>(s), std::forward<R>(r), _impl<false>{});
}
};

} // namespace _cpo
} // namespace _connect
inline const _connect::_cpo::_fn connect{};
Expand Down

0 comments on commit a2e305c

Please sign in to comment.