Is there a way to get the address of the function that would be used in Implicit Function Template Instantiation?

Jonathan M Davis newsgroup.d at jmdavisprog.com
Wed Jun 27 22:39:26 UTC 2018


On Wednesday, June 27, 2018 22:34:46 Nathan S. via Digitalmars-d-learn 
wrote:
> Let's say there's a function template `doImpl` and `doImpl(x)`
> compiles thanks to IFTI. Is there any way to get the address of
> the function that would be called in `doImpl(x)`?

You could explicitly instantiate the function template and then take its
address.

- Jonathan M Davis



More information about the Digitalmars-d-learn mailing list