Liste des Groupes | Revenir à cl c |
Am 11.10.2024 um 21:30 schrieb Thiago Adams:This is already the default in C for file scope variables and places where constant expression are required like enums.Em 10/11/2024 4:17 PM, Bonita Montero escreveu:With constexpr you could enforce that the expression you assign isAm 11.10.2024 um 20:11 schrieb Thiago Adams:>
>
>
>constant expression make sense in C. It is not new, it is very old.>
const has a definition and it allows non compile-time evaluated
variables.
yes. but?
compile-time evaluated. That's while constexpr would make sense.
Les messages affichés proviennent d'usenet.