|
|
От: |
Kaa
|
http://blog.meta.ua/users/kaa/ |
| Дата: | 08.11.02 20:09 | ||
| Оценка: | |||
ssi> foo<ab, 2> theFoo = { 1, 2, 1, 2 };An aggregate is an array or a class (clause 9) with no user-declared constructors (12.1), no private or protected nonstatic data members (clause 11), no base classes (clause 10), and no virtual functions (10.3).
...
When an aggregate is initialized the initializer can be an initializer-clause
consisting of a braceenclosed, comma-separated list of initializers for the members of the aggregate, written in increasing subscript or member order. If the aggregate contains subaggregates, this rule applies recursively to the members of the subaggregate.