mercredi 2 décembre 2020

Integer literal for fixed width integer types

Is there some c++ proposal for Integer literal for fixed width integer types like this?

// i's type is unsigned int
auto i = 10u;
// j's type is uint32_t
auto j = 10u32;

Aucun commentaire:

Enregistrer un commentaire