Can anyone help me please,I tried so many things but couldn't solve this problem,I have a class named "trading" which has a method with this for loop, my code:
for(Iterator<House> it=Houses.begin();it!=Houses.end();++it){
pair<House,double> HousePair;
HousePair.first=(*it);
HousePair.second=(*it).getPrice();
(owner.getHousesMap()).insert(HousePair);
}
}
*I can't post an image for the error i get. in the insert line I get this error: "required from here `std::pair,bool std::Rb_tree<_Key,Val,_KeyOfValue,_Compare,_Alloc>.....and so on.
*the method gets (List& Houses) *owner is of type class Ower and is a private parameter in the trading class
Aucun commentaire:
Enregistrer un commentaire