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

Steven Schveighoffer schveiguy at yahoo.com
Wed Jun 27 23:23:02 UTC 2018


On 6/27/18 6:34 PM, Nathan S. 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)`?

It's a good question!

You may be able to use TemplateOf, TemplateArgsOf, and Instantiate to 
generate the actual instantiation.

-Steve


More information about the Digitalmars-d-learn mailing list