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

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
Language:C++
Severity Level:4
Category:Class Interface


Description:

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.