Skip to content

Commit

Permalink
fix stream operator error
Browse files Browse the repository at this point in the history
  • Loading branch information
rolf.tan committed Jan 2, 2024
1 parent 515d930 commit 621fcea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Channel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ namespace _detail {

template <typename U>
auto operator<<(const IsSenderPtr auto& sender, U&& message) -> const IsSenderPtr auto&
requires std::movable<U> && IsConvertible<GetChannelType<decltype(sender)>, U> {
requires std::movable<U> && IsConvertible<U, GetChannelType<decltype(sender)>> {
if (!sender->send(std::forward<U>(message))) {
_detail::closedHandler();
}
Expand All @@ -289,7 +289,7 @@ requires std::movable<U> && IsConvertible<GetChannelType<decltype(sender)>, U> {

template <typename U>
auto operator<<(const IsSenderPtr auto& sender, const U& message) -> const IsSenderPtr auto&
requires std::is_copy_constructible_v<U> && IsConvertible<GetChannelType<decltype(sender)>, U> {
requires std::is_copy_constructible_v<U> && IsConvertible<U, GetChannelType<decltype(sender)>> {
if (!sender->send(message)) {
_detail::closedHandler();
}
Expand Down

0 comments on commit 621fcea

Please sign in to comment.