Package Index  Table of Contents

CodeCheck ECS C/C++ to Test Suite - 23.cpp

/*
23.    Use "other" for parameter names in copy constructors and assignment operators.
*/
class A {
    
    A( const A& other );    // ok
    A& operator= (const A& other ); // ok
    A( const A& foo );    // bad
    A& operator= (const A& fum ); // bad
};

Package Index  Table of Contents

CodeCheck Copyright (c) 1988-2005 by Abraxas Software Inc. (R). All rights reserved.