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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • 4.7.4
    • Core: QtConcurrent
    • None
    • 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

            Unassigned Unassigned
            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