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

qHash(QGeoCoordinate) mssing

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 5.7.0 Alpha
    • 5.6.0 RC
    • Positioning
    • 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

            ablasche Alex Blasche
            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