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.