Yes, in C ++ you declare x without typdef, just by writing
enum Test{ foo, bar }; Test x;
However, if you were to try the same thing in C, you need to declare x as
enum Test x;
or use typedef.
So typedef is probably a habit left over from C (unless the header file is C).
source share