Changes between Version 29 and Version 30 of code/C++_styleguide
- Timestamp:
- Jun 30, 2009, 10:02:49 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/C++_styleguide
v29 v30 236 236 237 237 === 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.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 in the latter case. The members of the enum should be written in UpperCamelCase. 239 239 {{{ 240 240 class MyClass … … 251 251 namespace Colour 252 252 { 253 enum value253 enum Value 254 254 { 255 255 Red,