Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


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

Aug 13, 2009, 19:32 (0 Talkback[s])
(Other stories by Danny Kalev)

"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

Related Stories: