Does C++ 20 allows nested designated initializers? E.g:
struct Outer {
int32_t counter;
struct {
std::string name;
} inner;
struct {
std::optional<int32_t> value;
} inner_optional;
};
Outer outer = {
.counter = 100,
.inner = {
.name = "test" // nested
}
};
If this is allowed, can someone provide a link to a trusted source? I can't find it on cppreference.