by kfury · 14y ago · 0 comments
const uint16 max_pressure = 100;
enum Switch_position {up, down};
``Switch_position'' is not the name of a variable, but an enum type.AV Rule 69 says to use `const` by default on member functions. Yet in some examples (e.g. AV Rule 122 in Appendix A) they don't use the `const` keyword when they can.