std::io: Ignore io_error on iteration