Recode C -> C++ trampoline function macros using templates
Surprisingly (to me at any rate) there is a template solution.

It appears that it is possible to do:

template&lt;FuncSignature funcPointer&gt;
myFunc(){...}


And later:

x = myFunc&lt;&amp;MyClass::MyMethod&gt;


You can pick up the trail here: https://stackoverflow.com/questions/26934036/coding-static-to-instance-method-trampoline-function-with-templates