On Thu, 2017-05-25 at 10:33 +0200, Michal Sudolsky wrote: > Looking at code of PdfPainter destructor there is stated that > throwing exception in c++ destructors is not allowed but at bottom > that PODOFO_ASSERT is throwing exceptions.
Hi, this had been discussed at the beginning of this year in thread: https://sourceforge.net/p/podofo/mailman/message/35616516/ Long story short: - PODOFO_ASSERT() should truly behave like assert(), to claim errors on library client's side - it had been avoided and replaced with throwing exception for release builds; that makes it work properly on all but this single place [~PdfPainter()] - since enabled c++11 standard even a gcc compiler claims the issue about throwing exception in the destructor - there had been suggested to replace PODOFO_ASSERT() in this particular place with something else, or at least for release builds. I inclined towards that during the time, but I did not get to change it yet. Bye, zyx -- http://www.litePDF.cz i...@litepdf.cz ------------------------------------------------------------------------------ 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 Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users