Int this piece of code ****, there are three overloading of the function Func in the class A, but
I need to know which of these functions where called in main function.
The vtable provide only the memory address of these three functions, but I don't know where I should check
the foot print of these virtual functions.
#include <stdio.h>
#include <stdint.h>
class A
{
public:
A(){}
virtual ~A() {}
virtual int Func(int a) { return puts(__PRETTY_FUNCTION__); }
virtual int Func(char a) { return puts(__PRETTY_FUNCTION__); }
virtual int Func(float a) { return puts(__PRETTY_FUNCTION__); }
};
int main(int argc, const char **argv)
{
A *a = new A();
a->Func(3);
return 0;
}