Abraxas/CCS  Home  Table of Contents

Module - 26.html

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite

CCS -C Test Suite for Module - 26.cpp

/*

26) Preserve natural semantics for overloaded operators.

*/
class setint {

// bad 26, dangerous to overload primitive operators in local project code

    friend setint& operator+(setint&);
    friend setint& operator*(setint&);
};

Abraxas/CCS  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite CCS