template specialization
Jarrett Billingsley
kb3ctd2 at yahoo.com
Sat Mar 3 18:24:52 PST 2007
"Thorsten" <thorstenkiefer at gmx.de> wrote in message
news:esd2dn$126l$1 at digitalmars.com...
> , I get this :
> tools.d(162): template tools.toString(T : T[]) specialization not allowed
> for deduced parameter T
>
> According to the online manual this should be no error.
> How can I solve this ?
You are instantiating this template implicitly, as:
char[] s = toString([1, 2, 3]);
The spec says "Function template type parameters that are to be implicitly
deduced may not have specializations."
More information about the Digitalmars-d
mailing list