figure out where a particular template function is located

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Jun 24 20:37:59 UTC 2020


On Wed, Jun 24, 2020 at 04:28:24PM -0400, Steven Schveighoffer via Digitalmars-d-learn wrote:
> I have code that instantiates a template:
> 
> templ!int("abc");
> 
> When I read the source of where I *think* this template should be, I
> can't find one that would match (I think). I feel like it's being
> imported elsewhere.
> 
> How do I figure out what module (at least) this instantiated template
> is in?  Because of IFTI, I don't know what the template parameters
> are. Is there a way to figure this out from the call?

Use a debugger and step into it? ;-)


> I'm looking for a pragma(msg) or such that can give me the fully
> qualified name/instantiation details of this template.
[...]

AFAIK there isn't such a thing.


T

-- 
Живёшь только однажды.


More information about the Digitalmars-d-learn mailing list