Using template mixin, with or without mixin ?

biocyberman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 8 02:47:07 PDT 2017


On Friday, 7 April 2017 at 23:53:12 UTC, Ali Çehreli wrote:
>
> The difference is that you can't use funcgen as a regular 
> template:
>
>     funcgen!(void, void);
>
> Error: template instance funcgen!(void, void) mixin templates 
> are not regular templates
>
> I think it's good practice to use 'mixin template' if it's 
> intended to be so.
>
> Ali

Thanks for a very concise answer.



More information about the Digitalmars-d-learn mailing list