vendredi 26 juin 2020

Why constexpr function not always evaluated in compile time [duplicate]

I think C++ standard said if all of arguments of constexpr function are constant expression, then the result of function will evaluate in compile time, but why the function only evaluated in compile time while assign it to constexpr variable, and other not?

Aucun commentaire:

Enregistrer un commentaire