import std.stdio;
template T(alias X) {
}
void main() {
writeln(typeid(typeof(T!int)));
}
dmd 2.048 on linux produces an error for the above code.
Error: template instance T!(int) does not match template declaration T
(alias X)
Built-in primitive types cannot be used as template alias para
On Sat, 14 Aug 2010 04:03:15 +, Deokjae Lee wrote:
> template T(alias X) {
> Error: template instance T!(int) does not match template declaration T
> (alias X)
> However, I got a reply that the behavior is intended. I think the
> limitation that the built-in types are not accepted as alias p