Skip to content

Commit cddcd5a

Browse files
authored
Merge pull request #1409 from mk-huawei/fix/pack-indexing
Fix use of pack indexing failing to compile on clang head.
2 parents 6f47fbb + 3d14a87 commit cddcd5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/stdexec/__detail/__meta.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ namespace stdexec {
10721072
constexpr decltype(auto)
10731073
operator()(_Ts &&...__ts) const noexcept {
10741074
static_assert(_Np < sizeof...(_Ts));
1075-
return (static_cast<_Ts &&>(__ts)...[_Np]);
1075+
return static_cast<_Ts...[_Np] &&>(__ts...[_Np]);
10761076
}
10771077
};
10781078
#else

0 commit comments

Comments
 (0)