I have a polymorphic object like so:
shared_ptr<Retirer> retirerObj(make_shared<Retirer>());
and I invoke its polymorphic method:
retirerObj->coat();
I'd like to get the address of where the coat()
implementation is located. I tried a few ways using the address of operator, didnt work and then I wondered if I had to use some nasty syntax like for function pointers.
How can I output the address of coat()
?