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 29 '26 edited Apr 29 '26
std::make_pack wouldn't allow mixing it with structural bindings of other types, which is where type safety issue arises.
can be as simple as static_cast<...>