Why does the compiler (clang,gcc) not warn about narrowing conversions when doing this
float a{3.14159}
float a = {double(3.141)}
I expected a warning because I do explicit value-initialization with braces. Following this answer Link it should spit out an error.
Aucun commentaire:
Enregistrer un commentaire