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

Possible problem with order of parameters for one of the mappedReduced() calls

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 4.7.4
    • Fix Version/s: 4.8.0
    • Component/s: Core: QtConcurrent
    • Labels:
      None
    • Commits:
      0ba0c374fe055623381e3795daa6743c5c995bbc

      Description

      There is a call for mappedReduced() which has a different order for the result types:

      template <typename ResultType, typename Iterator, typename MapFunctor, typename ReduceFunctor>
      QFuture<ResultType> mappedReduced(Iterator begin,
                                        Iterator end,
                                        MapFunctor map,
                                        ReduceFunctor reduce,
                                        ReduceOptions options = ReduceOptions(UnorderedReduce | SequentialReduce))
      {
          return startMappedReduced<ResultType, typename MapFunctor::result_type>
          (begin, end, map, reduce, options);
      }
      

      Based on the other implementations, it should read:

      return startMappedReduced<ResultType, typename MapFunctor::result_type>
      

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes