I am trying to print the address of a virtual member function. If I know which class implements the function I can write:
print(\"address: %p\", &A::func
Doesn't make a lot a of sense to me. If you have a normal function:
void f( int n ) { }
then you can take its address:
f
but you cannot take the address of a function call, which is what you seem to want to do.