lundi 27 avril 2015

Why is initializing auto with curly braces considered bad?

I've come into the habit of writing code like:

int i {0};
string s {""};
char c {'a'};

But when it comes to auto, I have heard it's considered bad practise, why is that?

Aucun commentaire:

Enregistrer un commentaire