Passing nested template function

Alex sascha.orlov at
Sat Aug 10 18:05:11 UTC 2019

On Saturday, 10 August 2019 at 17:45:43 UTC, Prateek Nayak wrote:
> A nested function can be passed to another function evident 
> from this example:
> However if the nested function is a template function, it 
> raises an error
> 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?

The part I'm not sure about:
This is not possible: Before instantiation, the object does not 
exist, you cannot, therefore, pass its pointer, not to speak 
about the pointer of its frame.

However, how about this:

More information about the Digitalmars-d-learn mailing list