Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-12931

sorting of std::vector elements in the debugger is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 3.2.0
    • Debugger
    • None
    • win7, qt-enterprise edition, qt creator 3.2

    Description

      When debugging contents of a std::vector, the sorting of its elements is wrong (see attached picture)

      how to reproduce:

      #include <algorithm>
      #include <iostream>
      #include <vector>

      int main()
      {
      std::vector<int> v(100);
      std::iota(std::begin(v), std::end(v), 1);

      for (int i : v)

      { std::cout << i << std::endl; }

      }

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hjk hjk
              ahaupt Andre Haupt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes