Why not static const double d = 1.5; inside a class?
This line is accepted inside of a class by the VC9 compiler:
while this line is not:
static const uint MAX_FRAME_ITERATIONS = 50;
When trying the latter, I got the error:
static const double BOUNCE_COEFFICIENT = .8;
Instead I had to put it in the global scope, but that just feels stupid. Why doesn't it accept non-integer constants inside of a class?
error C2864: 'physics::BOUNCE_COEFFICIENT' : only static const integral data members can be initialized within a class