Synopsis: | Use overloaded functions and chained function calls instead of functions with an unspecified number of arguments |
Language: | C++ |
Severity Level: | 4 |
Category: | Parts of C++ to Avoid |
Description: |
Functions or methods using variable arguments should not be used unless very good reasons exist to do so. This is not advised since the strong type checking provided by C++ is thereby avoided. The intended effect can often be reached using function overloading. |