C++0x Forward Enum Declarations Cut Down Compilation Time and Dependencies
Aug 13, 2009, 19:32 (0 Talkback[s])
(Other stories by Danny Kalev)
How to Help Your Business Become an AI Early Adopter
"The problem: Your project has an enum type containing hundreds
of machine-generated enumerators that change frequently. You must
provide a complete definition of that enum in every translation
unit, even if the compiler seemingly doesn't need the complete
definition of the enum.
The solution: Replace complete definitions of enum types with
forward enum declarations where possible."