//assume there is no Print(double dValue)
void Print(unsigned int nValue);
void Print(float fValue);
Print(3.14159);
Shouldn't the Print(3.14159)
match with Print(float)
?
Instead of it, this code lead to an ambiguous match
- Is
3.14159
adouble
? - How to differentiate between
float
anddouble
?
Aucun commentaire:
Enregistrer un commentaire