function-local template specialization error

bearophile bearophileHUGS at lycos.com
Wed Jul 14 03:20:20 PDT 2010


canalpay:
> void main()
> {
>     T input(T)()
>     {}
>  
>     T input(T : string)()
>     {}
> }

In D2 you can't define templates inside functions.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list