Oleg Goldshmidt <p...@goldshmidt.org> writes:

>>         c2<int> gen_c2(int a)
>>         {
>>                 c2<int> ret(a);
>
> This is where you *instantiate* an object of type c2<int>, so you
> cannot specialize the template later, as the compiler tells you.

The compiler and Shachar... I was not attentive enough reading his
post, focused on the suggestion to return a pointer... He diagnosed
the problem perfectly, the solution is in my post.

-- 
Oleg Goldshmidt | p...@goldshmidt.org

_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to