In my .h, I declare a static int like this:
static int index = 16;
And I calculate another static const like this:
static const int HEADER = (int) pow(2.0, index++);
These 2 lines works and compiles.
However, when I try to reset the value of index, like this:
index = 2;
I get a compile error:
error: expected constructor, destructor, or type conversion before
'=' token
can you please tell me what did I do wrong?
Thank you.