However if the nested function is a template function, it raises an error
https://run.dlang.io/is/PQhkwl The error being: cannot get frame pointer to the nested function
Is there a way to pass a nested template function to a function declared outside the outer function scope?