Hi there,

I have a question about array initialization in class files. What is the proper way to do it? I have tried the following in a .h file.

Code:
const int arr [] = {123, 456, 789};
Which gives an error complaining about brace init in the .h file. If I do it in the .cpp file then it won't get recognized in subclasses that are including the .h file. I want this array to be private to the class, as an internal data member.