What is the correct way to pass functions (with the same input arguments/return type) as arguments to another function, without function pointers being used? I would like the function argument passed in to be inlined when it is called? Well, I just don't want the pointer indirection.
I found this:
Pass a function as an explicit template parameter
but it seems to be using function pointers.
EDIT: I'd really really really like to avoid having to create structs to store the behaviour for each function argument.