I am trying to write a template function that accepts a std::function which depends on the template arguments. Unfortunately the compiler is not capable of corr
If you are using templates, you can avoid std::function entirely, unless for some reason you want to specifically restrict the function to take std::function: