Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 29 and Version 30 of code/C++_styleguide


Ignore:
Timestamp:
Jun 30, 2009, 10:02:49 AM (15 years ago)
Author:
rgrieder
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/C++_styleguide

    v29 v30  
    236236
    237237=== Enumerations ===
    238 Enumerations should either be put in class scope or within a separate namespace beginning with a capital letter. Use 'value' as the name of the enum.
     238Enumerations should either be put in class scope or within a separate namespace beginning with a capital letter. Use 'Value' as the name of the enum in the latter case. The members of the enum should be written in UpperCamelCase.
    239239{{{
    240240class MyClass
     
    251251namespace Colour
    252252{
    253     enum value
     253    enum Value
    254254    {
    255255        Red,