Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2138

Xerces-C++ should use C++98 features and remove pre-Standard workarounds

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 4.0.0
    • Build
    • None

    Description

      When compiling xercesc-3.2.0 with mingw-64 gcc 4.9.3 on Windows we get a lot of warnings, for example:

      class xercesc_3_2::XSConstants' only defines private constructors and has no friends

       In file included from C:/cygwin64/home/administrator/build-ad87109bfff0765f4dd8cf4943b04d16a4070fea/xerces-c-3.2.0/src/xercesc/framework/psvi/XSObject.hpp:26:0,
      Gandalf_win10_x86_64_01(administrator@172.16.2.213) [pkg_xercesc:windows-pkg-xercesc]                  from C:/cygwin64/home/administrator/build-ad87109bfff0765f4dd8cf4943b04d16a4070fea/xerces-c-3.2.0/src/xercesc/framework/psvi/XSTypeDefinition.hpp:25,
      Gandalf_win10_x86_64_01(administrator@172.16.2.213) [pkg_xercesc:windows-pkg-xercesc]                  from C:/cygwin64/home/administrator/build-ad87109bfff0765f4dd8cf4943b04d16a4070fea/xerces-c-3.2.0/src/xercesc/framework/psvi/XSSimpleTypeDefinition.hpp:25,
      Gandalf_win10_x86_64_01(administrator@172.16.2.213) [pkg_xercesc:windows-pkg-xercesc]                  from C:/cygwin64/home/administrator/build-ad87109bfff0765f4dd8cf4943b04d16a4070fea/xerces-c-3.2.0/src/xercesc/validators/datatype/DatatypeValidator.hpp:32,
      Gandalf_win10_x86_64_01(administrator@172.16.2.213) [pkg_xercesc:windows-pkg-xercesc]                  from C:/cygwin64/home/administrator/build-ad87109bfff0765f4dd8cf4943b04d16a4070fea/xerces-c-3.2.0/src/xercesc/framework/XMLAttr.hpp:28,
      Gandalf_win10_x86_64_01(administrator@172.16.2.213) [pkg_xercesc:windows-pkg-xercesc]                  from C:/cygwin64/home/administrator/build-ad87109bfff0765f4dd8cf4943b04d16a4070fea/xerces-c-3.2.0/src/xercesc/framework/XMLValidator.hpp:25,
      Gandalf_win10_x86_64_01(administrator@172.16.2.213) [pkg_xercesc:windows-pkg-xercesc]                  from C:/cygwin64/home/administrator/build-ad87109bfff0765f4dd8cf4943b04d16a4070fea/xerces-c-3.2.0/src/xercesc/sax2/SAX2XMLReader.hpp:27,
      Gandalf_win10_x86_64_01(administrator@172.16.2.213) [pkg_xercesc:windows-pkg-xercesc]                  from C:/cygwin64/home/administrator/build-ad87109bfff0765f4dd8cf4943b04d16a4070fea/xerces-c-3.2.0/samples/src/SAX2Print/SAX2Print.cpp:28:
      Gandalf_win10_x86_64_01(administrator@172.16.2.213) [pkg_xercesc:windows-pkg-xercesc] C:/cygwin64/home/administrator/build-ad87109bfff0765f4dd8cf4943b04d16a4070fea/xerces-c-3.2.0/src/xercesc/framework/psvi/XSConstants.hpp:56:24: warning: 'class xercesc_3_2::XSConstants' only defines private constructors and has no friends [-Wctor-dtor-privacy]
      Gandalf_win10_x86_64_01(administrator@172.16.2.213) [pkg_xercesc:windows-pkg-xercesc]  class XMLPARSER_EXPORT XSConstants
      Gandalf_win10_x86_64_01(administrator@172.16.2.213) [pkg_xercesc:windows-pkg-xercesc]                         ^

      Attachments

        1. 0001-Make-XSConstants-a-namespace.patch
          1 kB
          Roger Leigh
        2. 0002-Drop-XERCES_HAS_CPP_NAMESPACE-check.patch
          9 kB
          Roger Leigh
        3. 0003-Drop-XERCES_STD_NAMESPACE-check.patch
          7 kB
          Roger Leigh
        4. 0004-Drop-XERCES_NO_NATIVE_BOOL-check.patch
          7 kB
          Roger Leigh
        5. 0007-Use-cstdio-in-place-of-stdio.h.patch
          17 kB
          Roger Leigh
        6. 0005-Drop-XERCES_NEW_IOSTREAMS-check.patch
          26 kB
          Roger Leigh
        7. 0008-Use-cstring-in-place-of-string.h.patch
          38 kB
          Roger Leigh
        8. 0006-Use-cstdlib-in-place-of-stdlib.h.patch
          23 kB
          Roger Leigh
        9. 0009-Remove-use-of-strings.h.patch
          3 kB
          Roger Leigh
        10. 0010-Use-std-in-place-of-XERCES_STD_QUALIFIER.patch
          292 kB
          Roger Leigh
        11. 0011-Drop-const-workarounds.patch
          3 kB
          Roger Leigh
        12. 0012-Drop-inline-workarounds.patch
          4 kB
          Roger Leigh
        13. 0013-Drop-unused-volatile-workarounds.patch
          3 kB
          Roger Leigh
        14. 0014-Replace-XERCES_CPP_NAMESPACE-macros-with-real-namesp.patch
          558 kB
          Roger Leigh

        Activity

          People

            rleigh Roger Leigh
            jwillemsen@remedy.nl Johnny Willemsen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: