I\'m having trouble with enum visibility in an Objective-C program. I have two header files, and one defines a typedef enum. Another file needs to use the
You'd have to either #import them anyway or create a separate header file containing only the typedef. Not importing header files in a header makes the compilation faster, but doesn't change anything else.
Why doesn't C++ support forward declaration of enums?