Possible Duplicate:
Intitialzing an array in a C++ class and modifiable lvalue problem
As seen in this question, it's possible to give a ctor to a struct to make it members get default values. How would you proceed to give a default value to every element of an array inside a struct.
struct foo
{
int array[ 10 ];
int simpleInt;
foo() : simpleInt(0) {}; // only initialize the int...
}
Is there some way to make this in one line similar to how you would do to initialize an int?