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

qHash(QGeoCoordinate) mssing

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6.0 RC
    • Fix Version/s: 5.7.0 Alpha
    • Component/s: Positioning
    • Labels:
      None

      Description

      Not sure how https://bugreports.qt.io/browse/QTBUG-14263 affects this issue as there is a qHash(double) function now anyway.
      So this propsal would not create a new problem.

      e.g. (But I'm no expert!)

      uint qHash(const QGeoCoordinate& c, uint seed = 0)
      {
         QtPrivate::QHashCombine hash;
         seed = hash(seed, c.latitude());
         seed = hash(seed, c.longitude());
         seed = hash(seed, c.altitude());
         return seed;
      }

        Attachments

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

          Activity

            People

            Assignee:
            ablasche Alex Blasche
            Reporter:
            alexander_lanin Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes