Me stupid.
Working:
int main()
{
int testarray[] = { 0, 1, 2};
return 0;
}
Not working:
class testclass
{
public:
static const int testarray[] = { 0, 1, 2};
};
int main()
{
testclass Testobjekt;
return 0;
}
Why is the second example wrong? How should i do that?
TIA
Chris