In this struct I want to initialize an array but Visual Studio marks an error right after rulesRefIndex[3]
expected a ';'
struct Fact{
char name[4];
char value[6];
int rulesRefIndex[3] = { -1 };
};
Error occurs even with int rulesRefIndex[3] = { -1,-1,-1 };
and int rulesRefIndex[3] = {[0...3]= -1 };
as stated here.
What am I doing wrong?