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

QFuture should use C+11 variadic template for unlimited number of function parameters

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Won't Do
    • Affects Version/s: 5.0.0
    • Fix Version/s: None
    • Component/s: Core: QtConcurrent
    • Labels:
      None
    • Environment:

      Any

      Description

      Currently QFuture can pass a limited number of parameters to a function and I suppose that this was done because templates at the time didn't support the ellipsis operator that the functions have already.
      Now, with C++11 we have variadic templates ( http://www.cplusplus.com/articles/EhvU7k9E/ ).
      How about implementing it in QFuture to be able to pass unlimited parameters?

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              sorvig Morten Sørvig
              Reporter:
              lilian.moraru Lilian A. Moraru
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes