In production code I found the following enum:
enum class UpdateType : uint8_t {
INVALID = 0,
ADD = 1,
MODIFY = 2
}
I know advantage of enum class
– elements of this enum are typed (e.g we can not compare with integers without cast)
But what is advantage of : uint8_t
?
1