Next: 8 Declarations and Definitions  Up: index  Previous: 6 Constants  Contents

7 Conversions

7.1

High Integrity CPP Rule

Always use casting forms: 'static_cast', 'const_cast', 'dynamic_cast' and 'reinterpret_cast' or explicit constructor call. Do not use any other form.

7.2

High Integrity CPP Guideline

Minimise the use of casts.

7.3

High Integrity CPP Rule

Avoid casting away volatile qualification.

7.4

High Integrity CPP Rule

Avoid casting away const qualification.

7.5

High Integrity CPP Rule

Avoid using pointer or reference casts.

7.6

High Integrity CPP Rule

Do not convert floating values to integral types except through use of standard library routines.

7.7

High Integrity CPP Rule

Do not cast pointers to and from fundamental types.

7.8

High Integrity CPP Rule

Do not write code that relies on implicit conversions of arguments in function calls.


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