compiler can't deduce template function

2012-05-29 Thread Zhenya
import std.stdio; import std.typecons; import std.typetuple; template Erase(int k,TList...) { static if(k != 0) alias TypeTuple!(TList[0],Erase!(k-1,TList[1..$])) Erase; else alias TList[1..$] Erase; } auto Curry(uint i,R,T,U...)(R delegate(U) dg,

Re: compiler can't deduce template function

2012-05-29 Thread bearophile
Zhenya wrote: ... I suggest to minimize your code, and then show this problem again in the D.learn newsgroup. Bye, bearophile