Template recursion error on table struct

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Mar 26 02:47:10 PDT 2016


Please ignore my earlier response. :)

On 03/25/2016 02:54 PM, data pulverizer wrote:

 > template ColumnTable(T...){
[...]
 >          auto output = ColumnTable!(new_data)(new_data); // This is the
 > problem

You want to slice the template arguments there. The following removes 
the infinite recursion:

         auto output = ColumnTable!(T[columnRange.begin .. 
columnRange.end])(new_data);

Ali



More information about the Digitalmars-d-learn mailing list