HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by kevin_thibedeau | Hacker News Reader
Parent
Full thread
kevin_thibedeau
·
Designated initializers are gimped in C++;
View on HN
throw16180339
·
C++ 20 added designated initializers, but the fields have to be specified in declaration order.
kevin_thibedeau
·
It partially added them. You can't use them out of order or skip members nor can you use the array initializers.
Reply on news.ycombinator.com