Why is !() need with default template arguments

Jacob Carlborg doob at me.com
Tue May 19 18:10:43 PDT 2009


If I have a class like this:

class Class (T = int) {}

Then why can't I use it like this:

auto c = new C;

I have to do this:

auto c = new C!();



More information about the Digitalmars-d mailing list