determine if X is a template

BC NOTmi_emayl_adrez at hotmail.com.remove.not
Wed Nov 21 06:57:24 PST 2007


On Wed, 21 Nov 2007 14:34:46 -0000, BC  
<NOTmi_emayl_adrez at hotmail.com.remove.not> wrote:

> is there any way to determine if an identifier is a template, and how  
> many parameters it has?
>
> i'm doing a multimethods kind of thing to see if you can simulate  
> virtual template functions...

oh i figured it out, is(Templ) returns false and is(Templ!(int)) returns  
true
  if Templ takes one type argument


More information about the Digitalmars-d-learn mailing list