I've created a patch for PdfArray to have the functions erase() and insert() 
return iterators (like the functions on the underlying vector). This is needed 
if you have to insert or delete items while enumerating the array:

PdfArray::iterator it = pdfArray.begin();
while (it != pdfArray.end())
  if (some_condition)
    it = pdfArray.erase(it);

Best Regards,
Thomas Barnekov

Attachment: PoDoFo PdfArray iterator patch.patch
Description: PoDoFo PdfArray iterator patch.patch

Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Podofo-users mailing list

Reply via email to