void Host:: InfectWithMoreWildType(Virus& newVirus, double simulationTime, int maxNumberInfections) //function of the host receiving a new virus { //cout << "do i get stuck here??? InfectWith()"<<endl; Infection newInfection; list<Infection>::iterator it; list<Infection>::iterator end = infections.end(); if(!IsInfected()) // if the host is NOT infected yet { newInfection.TransmitInfection(newVirus,simulationTime);//set the parameters to the new infection! infections.push_back(newInfection); } else //but if the host IS infected with some viruses { if(infections.size()<maxNumberInfections) //check first whether it is already at its maximum { if(newVirus.IsWildType()) { newInfection.TransmitInfection(newVirus,simulationTime);//set the parameters to the new infection! infections.push_back(newInfection); } } } }