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

Doc: Example code snippet for QtConcurrent::mapped does not compile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.11.1
    • 5.11
    • Documentation
    • None

    Description

      According to a discussion on Freenode/#qt-labs on 09042018 1428 CEST:

      • http://doc.qt.io/qt-5/qtconcurrentmap.html <- the lambda example does not compile

      • the error is it can't convert QFuture<void> to QFuture<QImage> or whatever result_type is

      • it only works if you wrap the lambda into a std::function<T(T)>

      Known issue:

      even with the bug being open for 5 years, at least the docs should have working
      examples

      Attachments

        Issue Links

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

          Activity

            People

              paulwicking Paul Wicking
              paulwicking Paul Wicking
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes