r/cpp • u/pavel_v • Apr 24 '26
C++26: Structured Bindings can introduce a Pack
https://www.sandordargo.com/blog/2026/04/22/cpp26-structured-bindings-packs
101
Upvotes
r/cpp • u/pavel_v • Apr 24 '26
View all comments
Show parent comment
1
u/Ateist Apr 27 '26 edited Apr 27 '26
can you give an example that is not detected by a compiler?
because those cases that I looked up it absolutely does
i.e. index-based version:
So it is just as safe as type-based version.