Hello all,

GCC has a warning about "old-style casts" (those
which were already possible in old C versions),
which is currently disabled in PoDoFo. I'd like
to make its code more C++-like by removing those
and replacing them with dynamic_cast. I'm asking
beforehand because there's still the following
pronouncement in CODINGSTYLE.txt, section 3.1:
"Dynamic casting and typeid are not presently used in PoDoFo."
@Committers: Please permit me to lift this restriction,
as part of making PoDoFo more modern (already begun by
liberating the C++ standard version used, no longer just
C++98), in that file and change src/base/PdfVariant.cpp
and the other places where dynamic_cast is meant by an
old-style cast (AFAIK, the compiler needs to translate
these as dynamic_cast anyway), and enable the warning
about old-style casts in GCC (I don't use others).
I'll also fix the other occurrences of this warning
before committing this change.

Thanks in advance for granting my request.

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