|
|
От: | Lorenzo_LAMAS | |
| Дата: | 16.02.05 10:43 | ||
| Оценка: | |||
5.3.4/15
A new-expression that creates an object of type T initializes that object as follows:
...
— if the new-initializer is of the form (), the item is value-initialized (8.5)
...
8.5
To value-initialize an object of type T means:
...
— if T is a non-union class without a user-declared constructor, then every non-static data member and base
class component of T is value-initialized
...
— otherwise, the object is zero-initialized (я опустил многие пункты, но этот otherwise — это как раз члены-
данные, которые у тебя 0)