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

Rule:  INT#019Checked automatically with code checker

This rule is Obsolete
Synopsis:Once a default parameter value is defined, the value may never be changed
Severity Level:4
Category:Class Interface


Once a parameter has been declared with a default value, this value may never be changed. Reason is that code calling the method relies on this default value and probably will break when the default value changes. For example, the code:

Reset(int start = 0);

should not be changed later to:

Reset(int start = 1);

An acceptable alternative would be to fix all callers.