I have a simple state machine, there is a class called IState
with one function :
IState doSomething(int i);
I have many inheritors, Astate
, BState
...
i want to log in which state i'm currently at, i thought maybe i could write in all my implementation of doSomething the following line :
writeToLog("current function is" << __function__);
but unfortunately it doesn't help , because all the functions named identically, is there a way to write the full function name with it's class name?
Thanks