Liste des Groupes | Revenir à cl c |
Michael S <already5chosen@yahoo.com> writes:On Wed, 22 May 2024 22:11:44 +0200
David Brown <david.brown@hesbynett.no> wrote:
>
I will definitely use that. Sometimes I want a constant expression
for things like array sizes or static initialisers, and want to
calculate it. constexpr gives you that without having to resort to
macros.
I don't say that everything that can be done with C23 constexpr can
be done with enum, but for uses like ones you mentioned above, 90%
probably can be done with enum.
Are C23 enums signed? or unsigned? What is the supported enum
range?
Les messages affichés proviennent d'usenet.