Skip to content

Commit c087021

Browse files
committed
avoid ADL conflict between __tuple and ostream operator<<
1 parent 286e71b commit c087021

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/stdexec/__detail/__tuple.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ namespace STDEXEC
449449
//
450450
namespace __tup
451451
{
452-
template <class _Fn, class _Tuple>
452+
template <__is_tuple _Tuple, class _Fn>
453453
STDEXEC_ATTRIBUTE(host, device, always_inline)
454-
constexpr auto operator<<(_Tuple&& __tup, _Fn __fn) noexcept(__nothrow_move_constructible<_Fn>)
454+
constexpr auto operator%(_Tuple&& __tup, _Fn __fn) noexcept(__nothrow_move_constructible<_Fn>)
455455
{
456456
return [&__tup, __fn = static_cast<_Fn&&>(__fn)]<class... _Us>(_Us&&... __us) noexcept(
457457
__nothrow_applicable<_Fn, _Tuple, _Us...>) -> __apply_result_t<_Fn, _Tuple, _Us...>
@@ -465,7 +465,7 @@ namespace STDEXEC
465465
template <class _Fn, class... _Tuples>
466466
STDEXEC_ATTRIBUTE(host, device)
467467
constexpr auto operator()(_Fn __fn, _Tuples&&... __tups) const
468-
STDEXEC_AUTO_RETURN((static_cast<_Tuples&&>(__tups) << ... << __fn)())
468+
STDEXEC_AUTO_RETURN((static_cast<_Tuples&&>(__tups) % ... % __fn)())
469469
};
470470
} // namespace __tup
471471

0 commit comments

Comments
 (0)