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
3
u/_Noreturn Apr 29 '26
First of all it makes the most sense to be inside structured bindings. second of all how would a
std:make_packlook like API wise? Third of all library solutions to language problens is always a bad idea.Having it named
auto [...pack]orstd::make_packwouldn't solve "being used" problem. Simply don't use it.