I read about 5 SOF questions and they all say that we can only initialize static const integral types.
double is NOT integral type. Then why this code works? It should give error, shouldn't it?
class Simple
{
static const double x = 5.5;
};
int main(){}
Note: I am NOT using C++11.