Friday, October 29, 2010

Function Name Lookup

In function name lookup, once the compiler finds at least one function with the same name in a scope, it will not look any further; even if the function signatures do not match.

If none of the functions in the that scope has a matching signature, it will not look any further in any other scope; even in an outside scope with a match. Instead, the compiler will give an error.

Reference: Exceptional C++ by Herb Sutter. Addison-Wesley, 1999, pp. 134-135.

No comments:

Post a Comment