1 Oct 2010 21:02
C++ Overload Resolution
This is a summary of the research I have been doing on the subject. This
is probably going to be a long email, but I am doing it mainly as an
exercise to ensure that I record all I understood from the spec and
understand gdb to do.
This is a summary of Chapter 4, section 13.3, and section 14.5.5.2 of
the C++ spec and some googling, guessing and compiling.
I would appreciate your input, questions, and corrections.
When
====
Overload resolution takes place when:
1) invoking a function by name:
- a.foo()
- ap->foo()
- foo()
2) An invocation of the function call operator '()'
- class A{
int operator (int) {}
int operator (char){}
}
A a;
a(1)
3) Invoking a pointer-to-function conversion function.
I don't know what that is. I guessed this:
(Continue reading)
RSS Feed