C++ Language/ProgramFlow/FunctionOverloading/DiscriminationCriteria

From Wikibooks, open books for an open world
Jump to navigation Jump to search

When an overloaded function is called, the compiler is able to choose which implementation to use, based on the types of values passed to it. However, this overloading cannot discriminate between two implementations based only on return types.

Additional information about overloaded function discrimination (includes interactive examples)