Skip to content

Commit

Permalink
added a work-around for gcc lacking forward_like
Browse files Browse the repository at this point in the history
  • Loading branch information
dietmarkuehl committed Sep 14, 2024
1 parent 75503f2 commit e88a243
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/demo_algorithm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,11 @@ struct demo::when_any_t::state<::std::index_sequence<I...>, Receiver, Value, Err
state(R&& receiver, P&& s)
: state_value<Receiver, value_type, error_type>(sizeof...(Sender), ::std::forward<R>(receiver))
, states{demo::ex::connect(
::std::forward_like<P>(s.template get<I>()),
::beman::net29::detail::ex::detail::forward_like<P>(s.template get<I>()),
receiver_type<I>{this}
)...}
{
};
}
state(state&&) = delete;
auto start() & noexcept -> void
{
Expand Down
1 change: 1 addition & 0 deletions include/beman/net29/detail/execution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace beman::net29::detail::ex::detail
using ::beman::execution26::detail::meta::unique;
using ::beman::execution26::detail::meta::transform;
using ::beman::execution26::detail::sender_adaptor;
using ::beman::execution26::detail::forward_like;
}

namespace beman::net29::detail::ex
Expand Down

0 comments on commit e88a243

Please sign in to comment.