What if it == line.end() - 1 ?