I have a class which is essentially just holds a bunch of constant definitions used through my application. For some reason though, longs compile but floa
long
floa
what about:
class MY_CONSTS { public : static const long LONG_CONST; static const float FLOAT_CONST; }; const long MY_CONSTS::LONG_CONST = 1; const float MY_CONSTS::FLOAT_CONST = 0.001f;
(though, i cannot give any explanation of this specific case...)