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

[spike] More helpful compiler errors when using QtConcurrent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • 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

          Activity

            People

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

              Dates

                Created:
                Updated: