Conjunto is classtype that implements an array of pointers to some other class objects, i'm trying to overload the % operator so that the result is the join of both arrays into one.
eg. array1%array2 = array1 + array2
im' trying to use methods of the class Conjunto such as insert(Page * page),
as the code below any method over &right works, but if i try:
this.insert(right);
inside that cycle i obtain answer insert is not a type....
i don't know what's wrong tried everythig i culd remember....any help woul be apreciatted.
thks.
here is the problem code.
Conjunto &Conjunto::operator%(Conjunto &right){
if (&right!=this){
for (int i=0;i<right.size();i++){
right.list();
this.insert(right[i]);
}
}
return *this;
}