Constants in the scope of classes
Let us have this code:
MY_CONSTANT = 12356
That was OK, as MY_CONSTANT has not memmory for it, it is a compile time constant inside of scope of TestOne (TestOne::MY_CONSTANT)
Let now we want constant which is double. "enum" doesn't want doubles, so what should we do?
How can we create a constant, with no memmory for it inside of the scope of class?
E.g. the code:
static const double MY_CONSTANT = 12356.2 ;
is not compiled with Visual C++60 SP4, neither with Borland C++ 5.02