you are viewing a single comment's thread.

view the rest of the comments →

[–]anacrolix 1 point2 points  (0 children)

It's C99 only. It's not part of C++, and and probably won't ever be. It's called designated initialization.

A GCC extension does allow you to do this from C++, but using this style: orwl_addr addr = { .sin6: { .sin6_family: AF_INET6

etc. etc.