Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-686

Compile error with XalanDequeIterator with stlport 5.1.5 with stlport_debug , or Visual C++ 9 for secure SCL

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.10
    • Fix Version/s: CurrentCVS
    • Component/s: XalanC
    • Labels:
      None
    • Environment:
      stlport 5.1.5 with stlport_debug , or Visual C++ 9 for secure SCL

      Description

      There is a compile error with the XalanDequeIterator class with some of the std algorithms, which make use of the < operator to check the range.

      Also for a random_access_itetator this member is meant to be supplied to be a std container.

      To fix make the change

      <XalanDeque.hpp>
      struct XalanDequeIterator
      {
      ....
      // Add the following to fix
      bool operator<(const XalanDequeIterator & theRhs) const

      { return m_pos < theRhs.m_pos; }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mdavey Malcolm Davey
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: