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
11
u/Gorzoid Apr 24 '26
Absolutely hate type inference, completely screws up type safety.
You want the reciprocal of function f();
Someone upstream changes definition of f():
Congratulation - you don't get ANY notification about the change.
You wrote code that is explicitly permissive of the arity of the tuple and get upset when code still compiles after changing the arity?