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

When using a reduce functor it will not compile as it does not find the right signature

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.11.0
    • 4.7.4, 5.9.1, 5.10
    • Core: QtConcurrent
    • None

    Description

      When using a reduce functor it will not compile as it does not find the right signature. It works fine when using a member function or a global function but not a functor. Attached example reproduces this problem

      Attachments

        1. ComputePi.cpp
          1 kB
        2. ComputePi.h
          0.9 kB
        3. main.cpp
          0.3 kB
        4. 283108.pro
          0.3 kB
        5. fix.diff
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            villevoutilainen_qt Ville Voutilainen
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes