First, in C++ the only difference between struct and class is the initial accessibility.
The following is, for example not allowed in C++:
struct A {
const int c_i;
};
A a;
In C++, all const members have to be explicitely initialized.
The compiler wont generate anything to init them, and if they are not init, its an error....
Here's a possible way to write it in C++:
struct A {
int i;
};
const A a= {1};
C++ is not just C, its a different language. If you want to use C, use C :smileyhappy:
Daniel