dimanche 24 avril 2016

Why is the type here deduced to be uint32_t?

The following code is deducing the auto to uint32_t. I am trying to understand why it is so.

auto value = a + b * c;

where a is int32_t, b is uint32_t and c is int.

Aucun commentaire:

Enregistrer un commentaire