Hi all,

I'm not using my Yahoo account anymore, also because of the break-in.

> Sandro Mani <manisan...@gmail.com> has written on February 10, 2017 at 14:37:
> On 08.02.2017 11:21, Sandro Mani wrote:
> >
> >
> > However I can't reproduce it with the static library though, so it is 
> > definitely related to the shared library.
> >
> Hi
> Dropping -std=c++98 "fixes" the issue for me. Is there a reason for 
> using -std=c++98?
> 
> Sandro
> 
> 

AFAIK, the reason is that PoDoFo still supports (IMHO) "rather ancient" 
compilers,
i. e. Visual C++ 6, which don't support anything newer, so the flag is there to 
prevent incompatibilities from creeping in.
I'm very sorry that I only now come to the fore with it (I've been rather busy 
with
studies lately, for example): I smell that in src/base/PdfVariant.h, the C-style
casts (GCC calls them "old-style casts") should be replaced by dynamic_cast 
(then
the pragmas would be superfluous), however NULL checks would be required then, 
IMHO
(raising exceptions for "invalid data type" on failing).

Best regards,

mabri

------------------------------------------------------------------------------
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

Reply via email to