vendredi 16 octobre 2020

consteval vs constexpr on variables

Is there any difference between constexpr and consteval ?

 consteval int x1 = 2;
 constexpr int x2 = 5;

Is it better to use constexpr than consteval?

Aucun commentaire:

Enregistrer un commentaire