C ++ techniques acrobatics Miscellany
1. Enumeration
1.1 enumeration inheritance (Enum Inheritance)
struct Enum{
enum{ One = 1, Two, Last };
};
struct EnumDeriv : public Enum{
enum{Three = Enum::Last,Four,Five};
};
struct Enum{
enum{ One = 1, Two, Last };
};
struct EnumDeriv : public Enum{
enum{Three = Enum::Last,Four,Five};
};