Is there really any benefit to using typdefs in the form:
typedef struct MyStruct { int field1, int field2 };
typedef enum MyEnum { Apple, Banana, Orange};
versus
struct MyStruct { int field1, int field2 };
enum MyEnum { Apple, Banana, Orange };
C++ typedefs for struct, enum?
not sure but it may depend on the compiler. you may need the "typedef" on some but not on others.
Reply:I dont believe that there is. It has been a long time since I was in C++ though.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment