function-local template specialization error

canalpay canalpayciftci at gmail.com
Wed Jul 14 07:35:14 PDT 2010


bearophile Wrote:
> In D2 you can't define templates inside functions.
> 
> Bye,
> bearophile

Thanks, But this example works:
void main()
{
    T input(T)()
    {}

}

 Why ?


More information about the Digitalmars-d-learn mailing list