I need to pass a (function with one argument) as an argument to another function,
this another function is fixed - can not be changed becasuse it is already written.
I have came across using templates and thought it might solve the problem, but for some reason it doesn't compile. Can anyone help me fix it please? Or if it is not possible, can you explain it to me and maybe any other smart solutions using only one function?
1. It doesn't matter whether or not lines 18 and 19 are on the same actual line, whitespace doesn't matter to a compiler (except when making strings/multi-line macros).
2. Yes, that's the easier way that I should have suggested in my previous post. Do that instead.