mercredi 18 avril 2018

C++: auto-type defined by initial assignment

Given the definition

auto a = 0;

what is the type of a and how exactly is it deduced? Are there good reasons to use or not use such constructs?

I hope this question is not a dupe; I have not found a specific answer to this problem.

Aucun commentaire:

Enregistrer un commentaire