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

Allow compiling Xerces-C using C++11 (especially Clang)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2, 3.2.0
    • Component/s: Utilities
    • Labels:
    • Environment:
      Shouldn't matter (FreeBSD9.1 RC1)

      Description

      gcc issues a couple of warnings in C++11 about narrowing conversions, clang refuses to build for the same reason.

      The attached patch solves this trivial problem by adding a few static casts in the right places.

      While you're on it you might also want to apply XERCESC-1994, which had been revealed by compiling xerces-c using Clang.

        Attachments

          Activity

            People

            • Assignee:
              amassari Alberto Massari
              Reporter:
              grembo Michael Gmelin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: