In https://en.cppreference.com/w/cpp/language/constexpr
The constexpr specifier declares that it is possible to evaluate the value of the function or variable at compile time.
For function, I know that it won't be evaluated sometimes even we declare the function as constexpr
. But for variable, I can't get an example.
Aucun commentaire:
Enregistrer un commentaire