Példa

int main(int argc, char* argv[])
{
const int constant = 10;
double nonConst;

nonConst = (double) constant;

return 0;
}

Megoldás
Ha lehetséges, akkor kerülje a konstansok típusátalakítását.

int main(int argc, char* argv[])
{
const int constant = 10;
double nonConst;

nonConst = (
const double) constant;

return 0;
}