| 1 |
// PR c++/117937 |
| 2 |
// { dg-do compile { target c++26 } } |
| 3 |
|
| 4 |
void operate_one(const int) {} |
| 5 |
|
| 6 |
template<typename ...T> |
| 7 |
void operate_multi(T... args) |
| 8 |
{ |
| 9 |
[&]<int idx>() |
| 10 |
{ |
| 11 |
::operate_one(args...[idx]); |
| 12 |
}.template operator()<0>(); |
| 13 |
} |
| 14 |
|
| 15 |
int main() |
| 16 |
{ |
| 17 |
::operate_multi(0); |
| 18 |
} |