C programmers, please help me figure out something:
Since C23, a C enum may be declared to have a specific underlying type, as in the following example. My question is, how can I find the underlying type of such an enum? (C++11's std::underlying_type trait gets me this information.) đ
```C
enum Size : char { small, medium, large );
```
Code example in C++ and C: https://sigcpp.godbolt.org/z/eo7Tdqaeb
C enum: https://en.cppreference.com/w/c/language/enum
#question #c #programming #cpp #cplusplus #enumerations #enums
#question #c #programming #cpp #cplusplus #enumerations #enums
Moshi is one of the most popular #JSON parsing libraries on #Android, but for DRY-loving #AndroidDevs #Moshi has a weak point; #enumerations.
https://www.droidcon.com/2022/11/22/solving-the-moshi-enumeration-problem-using-generics/
#json #android #androiddevs #moshi #enumerations
Moshi is one of the most popular #JSON parsing libraries on #Android, but for DRY-loving #AndroidDevs #Moshi has a weak point; #enumerations.
https://www.droidcon.com/2022/11/22/solving-the-moshi-enumeration-problem-using-generics/
#json #android #androiddevs #moshi #enumerations
#InfoQ #Java "Pleins Feux Sur Les Fonctionnalités Java : Les Classes Scellées " #SealedClass #ClassesScellées #Enumerations ... https://www.infoq.com/fr/articles/java-sealed-classes/
#infoq #java #SealedClass #ClassesScellées #enumerations
#InfoQ #Java "Pleins Feux Sur Les Fonctionnalités Java : Les Classes Scellées " #SealedClass #ClassesScellées #Enumerations ... https://www.infoq.com/fr/articles/java-sealed-classes/
#enumerations #ClassesScellées #SealedClass #java #infoq
#InfoQ #Java "Pleins Feux Sur Les Fonctionnalités Java : Les Classes Scellées " #SealedClass #ClassesScellées #Enumerations ... https://www.infoq.com/fr/articles/java-sealed-classes/
#infoq #java #SealedClass #ClassesScellées #enumerations