57 double minDist = std::numeric_limits<double>::infinity();
59 if (schools->size() == 0) {
62 std::list<AGSchool>::iterator it;
64 for (it = schools->begin(); it != schools->end(); ++it) {
65 if (it->acceptThisAge(
age) && it->getPlaces() > 0 && housePos.
distanceTo(it->getPosition()) < minDist) {
66 minDist = housePos.
distanceTo(it->getPosition());