Package Index  Table of Contents

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

/*
84.   Accept objects by reference and primitive or pointer types by value.
*/
class BIG;
//GOOD 84
void foo ( const BIG & parm );
//BAD 84, primitive types must be passed by value
void fum ( const char & cparm );

Package Index  Table of Contents

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