I would like to run some code (perhaps a function) right before every function call for a class and all functions of the classes that inherit from that class. I\'d like to do t
You could also do this with the Curiously recurring template pattern (CRTP).