Cpp Coding Standards/FIMPL/DefSwitch
From Apache OpenOffice Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Special Cases
In case of switch on an enum, where all enum values are "case"s, it is better to not provide a default switch, because some compilers throw a warning, if one enum value is missing, but do not throw this warning, if a default branch is provided.
In such cases prefer a comment that no default is needed.