On Wed, 2019-11-13 at 19:47 +0100, Michal Sudolsky wrote: > I do not see any reason why would be better to use preprocessor to > switch between "&data[0]" and "data.data()"
Hi, there might be a reason why the vector::data() had been added. Maybe it's a cleaner way to access the data. Also, as you said, if the data is NULL, then dereferencing it will cause a crash. > There never been "finally" or "__finally" in C++ standard. > .... > If you meant that Microsoft extension __finally. I see. I know compilers have their own language extensions, I kind of expected the __finally or finally or some such being available in some form everywhere. Or I'm just too used to the C++ Builder. In any case, my fault. > Or simply put "delete[] buffer" on all relevant places > before PODOFO_RAISE_ERROR as is now done with TIFFClose. > > But C++ way is much better and far less error prone. Definitely, I agree. Bye, zyx _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users