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

[spike] More helpful compiler errors when using QtConcurrent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 6.0
    • Core: QtConcurrent
    • None
    • 13
    • Qt6_Foundation_Sprint 23, Foundation PM Prioritized

    Description

      When using QtConcurrent, the user often gets compiler messages like

      error: no matching function for call to ‘blockingMappedReduced(...)’
      

      which is not helpful at all.

      Maybe some static_asserts would improve the situation dramatically.

      As suggested by Marc in the comments below, we need to experiment with the modern compilers to see how the exact formulation of the constraints (enable_if-s now, and C++20 constraints/concepts later) affects the error messages, and find a sweet spot between implementation complexity and readable error messages.

      Attachments

        Issue Links

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

          Activity

            People

              cnn Qt Core & Network
              andreasbuhr Andreas Buhr
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes