Synopsis: | All variants of an overloaded member function shall be used for the same purpose and have similar behavior |
Language: | C++ |
Severity Level: | 2 |
Category: | Class Interface |
Description: |
Overloading of functions can be a powerful tool for creating a family of related functions that only differ as to the type of data provided as arguments. If not used properly (such as using functions with the same name for different purposes), they can, however, cause considerable confusion. |