Inspired by Nick's post on stringof weirdness, I started wondering - is
there a way to get ahold of the FQN of the template (not the
instantiation), given an instantiation? Same goes for getting a typetuple
of the parameters. Anyone know?

Basically, what I thought might work would be:

template getTemplate( T : U!( V ), U, V... ) {
    alias U getTemplate;
}

template TemplateParameters( T : U!( V ), U, V... ) {
    alias V TemplateParameters;
}

--
Simen

Reply via email to