TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C++ Coding Standard
Search

Rule:  INT#018Checked automatically with code checker

This rule is Obsolete
Synopsis:Pass arguments of built-in types by value unless the function should modify them
Language:C++
Severity Level:9
Category:Class Interface


Description:

Of course the built-in type void is incomplete and thus cannot be passed by value. C-style arrays are passed as e.g. 'int foo[]' or as 'const int foo[]', if there is a reason not to use standard containers or a standard string.



Literature References:
ISC++ Rec. 7.3