I have a confusion regarding vtable after reading more about name mangling. for ex:
class A
{
public:
void hello()
{
....
}
};
A obj;
obj.hello();
As per my understanding after the name manging obj.hello()
call will be converted to something like _ZASDhellov(&obj)
now
- how this virtual functions will be invoked from vtable?
- my wild guess
obj.__vtable[_ZASDhellov](&obj)
is correct? - How the function names are resolved from vtable?
Aucun commentaire:
Enregistrer un commentaire