Original Post
When do you initialize static const ints?
I have
class A {
static const int a=0; //this is what I would
static const int b=1; //*like* to do
...
}
The compiler complains about this, though "Thinking in C++" seems to think this code is fine (an otherwise great book, btw). The static is causing problems, but it''s definitely what I want. I could just #define, but it''s the principle of the matter...
Anyone know how to do this?
Thanks,
brett