Next: 16 Templates  Up: index  Previous: 14 Pre-processor  Contents

15 Structures, Unions and Enumerations

15.1

High Integrity CPP Rule

Do not use variant structures (unions).

15.2

High Integrity CPP Rule

Do not include member functions or access specifiers in struct types.

15.3

High Integrity CPP Rule

Do not rely on the value of an enumerator.

15.4

High Integrity CPP Rule

Avoid casting an integer to an enumeration as the result of this cast is unspecified if the value is not within the range of the enumeration.


HICPP VERSION 2.4  http://www.codingstandard.com   Copyright: © 2007 THE PROGRAMMING RESEARCH GROUP