>Can anyone show me how to detect if a symbol is template?
>The following is not working:
>template A()
>{
>...
>}
>alias a A;
>static if(is (a == template)) // errorimo, it is not possible; template name is not a type in this particular case, to check if a is alias for A, you may use: A.stringof == a.stringof -Igor ----- Original Message ---- From: Lirong <[email protected]> To: [email protected] Sent: Wed, February 17, 2010 10:18:43 PM Subject: detect if a symbol is template Hi, Can anyone show me how to detect if a symbol is template? The following is not working: template A() { ... } alias a A; static if(is (a == template)) // error Best regards
