std::vector::iterator i; for (i = Rooms.begin(); i < Rooms.end(); ++i) { /* binary '=' : no operator found which takes a right-hand operand of type 'std::vector<_Ty>::iterator' (or there is no acceptable conversion) */