summaryrefslogtreecommitdiffstats
path: root/src/concurrent/qtaskbuilder.h
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2021-07-10 20:57:03 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2021-07-21 09:46:33 +0200
commit6ebe3d0f0806069f906522dfe9b81baa3f3478de (patch)
treeabf147001a9018a6f85d86a50c36a4f27f6c3eb7 /src/concurrent/qtaskbuilder.h
parent1dcfb09c5bf431bf8b065ac038bd1fc618a68f96 (diff)
Fix QtConcurrent to properly work with functors
QtConcurrent reduce functions were requiring to explicitly pass the the result type when passing functors as reductor. This was because of inability to deduce the result type from the functors. The result type of the QtConcurrent reduce functions should match with the type of the fist argument of the operator() when a functor is passed. Reused the ArgResolver type trait (already used for QFuture and QtConcurrent::run) to find out the result type in that case. Task-number: QTBUG-88448 Change-Id: Ief0eeee197df8cb9c30f3403d71978f36e4fb0f2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/concurrent/qtaskbuilder.h')
0 files changed, 0 insertions, 0 deletions