Skip to content

Commit

Permalink
stop forward-declaring std::tuple_[size|element]
Browse files Browse the repository at this point in the history
  • Loading branch information
ericniebler committed Nov 7, 2023
1 parent 32a4221 commit d9a1938
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions include/stdexec/__detail/__basic_sender.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#include "../concepts.hpp"

#include <utility> // for tuple_size/tuple_element

namespace stdexec {
/////////////////////////////////////////////////////////////////////////////
// Generic __sender type
Expand Down Expand Up @@ -379,16 +381,10 @@ namespace stdexec {
} // namespace stdexec

namespace std {
template <class>
struct tuple_size;

template <class _Impl>
struct tuple_size<stdexec::__sexpr<_Impl>>
: integral_constant< size_t, stdexec::__v<typename stdexec::__sexpr<_Impl>::__arity_t> + 2> { };

template <size_t, class>
struct tuple_element;

template <size_t _Idx, class _Impl>
struct tuple_element<_Idx, stdexec::__sexpr<_Impl>> {
using type = stdexec::__detail::__remove_rvalue_reference_t<
Expand Down

0 comments on commit d9a1938

Please sign in to comment.