Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
kevin_thibedeau
· 1mo ago · 0 comments
Designated initializers are gimped in C++;
Comments
[–]
throw16180339
1mo ago
C++ 20 added designated initializers, but the fields have to be specified in declaration order.
[–]
kevin_thibedeau
OP
1mo ago
It partially added them. You can't use them out of order or skip members nor can you use the array initializers.
Better HN