Abraxas/CCS  Home  Table of Contents

Module - 40.html

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite

CCS -C Test Suite for Module - 40.cpp

/*

40) Avoid providing implicit conversions.

*/
class C40 {
public:
     explicit C40 (  int n = 0 );

// bad 40, implicit type conversion associatd with this class

    operator double() const;
};
C40 c40(1);

Abraxas/CCS  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite CCS