Template parameter default help
Chad J
"gamerChad\" at spamIsBad gmail.com
Sat Sep 30 20:28:30 PDT 2006
Chris Nicholson-Sauls wrote:
>
> Yes and no. The exact way you are trying, just won't work. However, if
> you instantiate this template with no parameters (Type2!()) it will
> work. The aliasing trick used to work; I think it was (inadvertantly?)
> canceled when IFTI support was added.
>
> -- Chris Nicholson-Sauls
This is kinda unfortunate. I wanted to make a struct where, in most
cases, someone would not need knowledge of template syntax to use it.
Type2!() doesn't accomplish that :(
Anyhow, thanks for the info Chris!
More information about the Digitalmars-d-learn
mailing list