Janice Caron wrote: > int main() > { > doTest!(1)(); > doTest!(2)(); // template instance main.doTest!(2) error instantiating > > auto a = new A!(N)(); > return 0; > } -auto a = new A!(N)(); +auto a = new A!(123)(); Try that. :)