template instance is nested in both A and B

Maxim Fomin maxim at maxim-fomin.ru
Sun Mar 17 21:45:03 PDT 2013


On Sunday, 17 March 2013 at 21:22:44 UTC, simendsjo wrote:
> Anyone have any idea what this means?
>
> Error: template instance TupleWrapper!(i, i) TupleWrapper!(i, 
> i) is nested in both S and D
>
> I don't have a minimal testcase, but I can try to create one if 
> it's difficult to see otherwise.

This means that template instance touches more than one context 
and since D implementation currently allows to have one single 
context pointer, the code is rejected. There is issue in 
bugzilla, and it is not fixed.


More information about the Digitalmars-d-learn mailing list