For my assignment, I was required to make a const static double variable in a class but my compiler gives an error.
const static double long_tarif = 1500.0;//error
const static int long_tarif = 1500;//no error
IntelliSense: a member of type "const double" cannot have an in-class
initializer
I'm working on visual studio 2013.