Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-129217

quint64 differs from uint64_t

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 6.8
    • Core: Other
    • None

      uint64_t and quint64 are different types, which can lead to rather unpleasant surprises, e.g.:

      ```
      void foo(int);
      void foo(uint);
      void foo(qint64);
      void foo(quint64);

      void bar()

      { foo(std::uint64_t(0)); // Call to 'foo' is ambiguous }

      ```

      it would be great if qt could integrate well with stdint.h / cstdint types. changing qint64 to `int64_t` would be an ABI change, but something to consider for qt-7

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

            thiago Thiago Macieira
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes