I have a strong enum class for the months of the calender. Is it possible to enforce ordering on the enum and iterate over it in some way?
The Month enum class is used in a Date class. So if for instance the current state of the class is 31 January, then if I call a dayIncrement
method it should go to 1 February.
enum class Month
{
January,
February,
March, etc
};
Aucun commentaire:
Enregistrer un commentaire