---

C++0x Forward Enum Declarations Cut Down Compilation Time and Dependencies

“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.”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis