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

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

XMLWordPrintable

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

      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

        For Gerrit Dashboard: QTBUG-67603
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes