Or I don't know, just use C++ lambdas instead?
I guess I need to prove a point on my Github during next week.
https://github.com/pjmlp/LambdaWndProc/blob/main/LambdaWndPr...
C++ lambdas are basically old style C++ functors that are compiled generated, with the calling address being the operator().
https://github.com/pjmlp/LambdaWndProc/blob/main/LambdaWndPr...