Skip to content

Commit

Permalink
Fix use of pack indexing failing to compile on clang head.
Browse files Browse the repository at this point in the history
Fixes #1404
  • Loading branch information
mk-huawei committed Sep 5, 2024
1 parent 6f47fbb commit 3d14a87
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 3d14a87

Please sign in to comment.