P
parag
hi All
Is it possible to get the the function pointer of a virtual function
of a class .More so, what could be the use for the same,
Functors typically use Class method address , but for vritual
functions ,how will it access it without the objects address.
Internally all class methods are rewritten to magled names with the
this pointer as its first argument
Class A{
void print();};
will become
A_print(A* this ) ;
But for virtual functions what will be the way to do so
Is it possible to get the the function pointer of a virtual function
of a class .More so, what could be the use for the same,
Functors typically use Class method address , but for vritual
functions ,how will it access it without the objects address.
Internally all class methods are rewritten to magled names with the
this pointer as its first argument
Class A{
void print();};
will become
A_print(A* this ) ;
But for virtual functions what will be the way to do so