About template template arguments syntax
Philippe Sigaud
philippe.sigaud at gmail.com
Sun Oct 2 11:48:23 PDT 2011
On Sun, Oct 2, 2011 at 19:12, Timon Gehr <timon.gehr at gmx.ch> wrote:
> Types are symbols, so just using alias template arguments works.
Hmm, no.
template isSymbol(alias a)
{
enum isSymbol = true;
}
void main()
{
enum a = isSymbol!int;
}
Error: template instance isSymbol!(int) does not match template
declaration isSymbol(alias a)
More information about the Digitalmars-d-learn
mailing list