About template template arguments syntax

David Nadlinger see at klickverbot.at
Sun Oct 2 14:25:10 PDT 2011


On 10/2/11 9:19 PM, Timon Gehr wrote:
> template isSymbol(alias T){
> enum isSymbol=true;
> }
>
> template ID(T){alias T x;}
>
> void main(){
> bool mooh=isSymbol!(ID!int);
> }
>
> Well, that should be fixed.

By the way, the issue here is the builtin primitive types are not 
considered symbols, user-defined types are matched by alias.

David


More information about the Digitalmars-d-learn mailing list