Variadic Tuple of Structs with Mixed Types

jmh530 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 15 12:24:12 PDT 2016


On Friday, 15 July 2016 at 17:41:21 UTC, Michael Coulombe wrote:
>
> Your issue is this line:
>
> alias boxAR(A) = Box!(A, R);
>
> This means that A must be a type, but you are trying to 
> instantiate it with lambdas. If you switch to:
>
> alias boxAR(alias A) = Box!(A, R);
>
> But now you are back to the "local '__lambda1' as parameter to 
> non-global template" error.

I had tried it a few different and ended up with errors like that.

>
> Have you considered recursive solutions?
>

Will try that next. Thanks.


More information about the Digitalmars-d-learn mailing list