Is there a way in C++ to extend/\"inherit\" enums?
I.E:
enum Enum {A,B,C}; enum EnumEx : public Enum {D,E,F};
or at least define a
I've solved in this way:
typedef enum { #include "NetProtocols.def" } eNetProtocols, eNP;
Of course, if you add a new net protocol in the NetProtocols.def file, you have to recompile, but at least it's expandable.