Welcome to the next pikoTutorial ! Recently I’m experimenting with different ways of error handling in Python and I stumbled upon a use case in which it would be very helpful to create an enum by deriving from a different enum. Use case Let’s say we design an interface for…
enum
Enums vs enum class in C++
Welcome to the next pikoTutorial! When dealing with enumerations in C++, developers have two primary options: traditional enum and enum class. Traditional enums vs enum classes At the first glance, the only difference appears to be in the class keyword: The real difference is however in how both of them…