This line is accepted inside of a class by the VC9 compiler:
while this line is not:Code:static const uint MAX_FRAME_ITERATIONS = 50;
When trying the latter, I got the error:Code: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?Code:error C2864: 'physics::BOUNCE_COEFFICIENT' : only static const integral data members can be initialized within a class