mardi 19 janvier 2021

Is declaring variables as const redundant after constexpr was added to the language?

I'm talking also about declaring variables. As keyword constexpr include const and also it can be calculated at a compile time does it mean that now declaring variables as const doesn't make sense and we always should declare then as constexpr?

Aucun commentaire:

Enregistrer un commentaire