How to handle abstract classes?
I have defined an abstract class CTermino... in one part of the code I wrote:
Code:
void agregarReemplazo (CTermino *terOriginal, CTermino *terReemplazante)
//Stuff
pair < CTermino*, CTermino* > nuevoReemplazo (terOriginal, terReemplazante);
Compiling that I got:
error: cannot declare field 'std::pair<CTermino, CTermino>::first' to be of abstract type 'CTermino'
Is it posible to declare a pair<,> of an abstrac type? What can I do to solve that error??
Thanks in advance!!! :)