C++ can initialize a constant static members in the class declaration only if the member is a non-volatile const integral type.
But why integral type? Is there any implementation issues for other types like floating numbers? precision maybe?
struct testClass
{
static const int val = 12;
//static const float val = 12;
};