vendredi 21 octobre 2016

Is declaring a variable with auto and initializing with a primitive literal defined behaviour?

If I inintialise a variable declared using auto with a primitive literal, are the results defined e.g.

auto i = 6; // Is this always going to evaluate to a int?

Aucun commentaire:

Enregistrer un commentaire