August 25th, 2009 02:33 AM
Thank you very much for your replies guys.
I found what's the real problem: the destructor in the class Matrix is pure virtual, making it just virtual and giving him an (empty) definition the code...
August 24th, 2009 11:08 AM
I use GCC on Linux.
I know a derived class can access protected members, that's the reason _righe and _colonne are protected and not private.
But.....
August 24th, 2009 10:42 AM
@Muthuveerappan
Ok, now I'm really confused: your code compile and work O_o
I thought, as I've read since now, that templates cannot be virtual... so if this can be possibile what's wrong with my...
August 24th, 2009 10:27 AM
@Muthuveerappan
My apologize, I've read wrong your reply. (I read "they cannot" instead of "they can").
No, as far I found on Internet (and the error gcc give me) they cannot combined.
And...
August 24th, 2009 10:17 AM
I'm a bit confused JohnW,
thank you for your reply but your code won't even compile. As mine it won't for the same reason: a template function cannot be virtual.
The operator() in Matrix is a...
August 24th, 2009 07:47 AM
Hi to all,
I'm new to this forum, nice to meet you.
Let me explain my problem: I am from Java. Yes, I know there is no cure for this but please be patient with me, I'm a Java programmer not due...