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 25 '26
But the one who wrote it wanted first and last item that were in the original return type, not in the changed type.
The question is, does C++ need this "wrong tool"?
Does it bring enough value to justify bloating the standard with it, as well as numerous bugs that will appear out of abusing it?
Because people will misuse it if you let them.