Top "Overload-resolution" questions

Overload resolution is a language mechanism to select among several viable function overloads.

Calling a const function rather than its non-const version

I tried to wrap something similar to Qt's shared data pointers for my purposes, and upon testing I found out …

c++ operator-overloading constants overload-resolution const-method
If the address of a function can not be resolved during deduction, is it SFINAE or a compiler error?

In C++0x SFINAE rules have been simplified such that any invalid expression or type that occurs in the "immediate …

c++ templates c++11 sfinae overload-resolution
std::function fails to distinguish overloaded functions

I am trying to understand why std::function is not able to distinguish between overloaded functions. #include <functional> …

c++ c++11 overload-resolution std-function
Why is a public const method not called when the non-const one is private?

Consider this code: struct A { void foo() const { std::cout << "const" << std::endl; } private: void foo() { …

c++ overloading overload-resolution private-methods const-method