I'm learning vectors and now I've got a problem: binary ==: no operator found which takes a left hand operand of type 'Object'. I've found out that there is no mustake after deleting:
vector<Object>::iterator it = find(list.begin(), list.end(), name);
And I don't know what to do. Maybe you will ask something like this
class Object {
private:
string* name;
vector<string>* facts;
public:
//...
}
class ListOfObjects {
private:
vector<Object> list;
public:
void Realise(string* knowledge);
};
void ListOfObjects::Realise(string* knowledge) {
//...
vector<Object>::iterator it = find(list.begin(), list.end(), name);
//...
}