Default Initialization of Aggregates / Arrays
In VC2005 I have something like this:
Code:
struct t
{
int ia[100];
struct s { int a, b, c; } type;
t() : ia(), type() { }
};
And I get the warning
Code:
warning C4351: new behavior: elements of array 'CWindow::_ia' will be default initialized
What is that new behavior thing? Should I not depend on this behavior? Is there a better way to default initialize members of the array? Also, am I guaranteed that all members of type will be default initialized?