The compiler does not support the following initialization features:
class A{
public:
A(){}
};
class B{
public:
A x[3];
B(){};
};
B b; /*the constructor of A is not called in order to initialize the elements of the array*/
struct B {
int im;
B(int i=0) { im = i; }
};
typedef class B B2;
struct C : public B {
C(int i) : B2(i) {} ;
---------------------^------------------ERROR
};
typedef M MA[3];
struct S {
MA a;
S(int i) : a() {}
-----------------------^----------ERROR: Cannot specify explicit initializer for arrays
};
struct S {
int a;
S(int aa) : a(aa) {}
};
static S s(10);
---------^-------------ERROR
See Conversion Features also.