--- filter/pdftopdf/qpdf_pdftopdf_processor_old.cc 2012-09-14 02:13:33.000000000 +0200 +++ filter/pdftopdf/qpdf_pdftopdf_processor.cc 2012-09-14 02:29:17.000000000 +0200 @@ -464,9 +464,9 @@ void QPDF_PDFTOPDF_Processor::setComments(const std::vector &comments) // {{{ { extraheader.clear(); - for (auto &it : comments) { - assert(it.at(0)=='%'); - extraheader.append(it); + for (std::vector::const_iterator it = comments.begin(); it != comments.end(); ++it) { + assert(it->at(0)=='%'); + extraheader.append(*it); extraheader.push_back('\n'); } }