Results 1 to 6 of 6

Thread: Using lambdas with QtConcurrent::blockingMappedReduced does not compile

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Using lambdas with QtConcurrent::blockingMappedReduced does not compile

    Try calling with the template type explicitly specified, I guess something like

    Qt Code:
    1. WordCount total = QtConcurrent::blockingMappedReduced<WordCount>(files.begin(), files.end(), wordMapFn, wordReduceFn);
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    hxcan (17th May 2017)

Similar Threads

  1. QtConcurrent std::bad_alloc
    By baray98 in forum Qt Programming
    Replies: 1
    Last Post: 11th April 2013, 06:23
  2. QtConcurrent and QSqlQuery
    By ^NyAw^ in forum Qt Programming
    Replies: 5
    Last Post: 10th April 2013, 14:28
  3. Why is QtConcurrent so slow?
    By ArlexBee-871RBO in forum Qt Programming
    Replies: 10
    Last Post: 29th December 2009, 10:37
  4. qtconcurrent
    By knishaq in forum Qt Programming
    Replies: 4
    Last Post: 15th December 2009, 08:41
  5. QtConcurrent
    By Brandybuck in forum An Introduction to QThreads
    Replies: 2
    Last Post: 9th May 2008, 14:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.