Skip to content

Commit

Permalink
Merge pull request #1409 from mk-huawei/fix/pack-indexing
Browse files Browse the repository at this point in the history
Fix use of pack indexing failing to compile on clang head.
  • Loading branch information
ericniebler authored Sep 6, 2024
2 parents 6f47fbb + 3d14a87 commit cddcd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/stdexec/__detail/__meta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ namespace stdexec {
constexpr decltype(auto)
operator()(_Ts &&...__ts) const noexcept {
static_assert(_Np < sizeof...(_Ts));
return (static_cast<_Ts &&>(__ts)...[_Np]);
return static_cast<_Ts...[_Np] &&>(__ts...[_Np]);
}
};
#else
Expand Down

0 comments on commit cddcd5a

Please sign in to comment.