summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/concurrent/qtconcurrentfunctionwrappers.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/concurrent/qtconcurrentfunctionwrappers.h b/src/concurrent/qtconcurrentfunctionwrappers.h
index be4a09f107d..1c882d3f194 100644
--- a/src/concurrent/qtconcurrentfunctionwrappers.h
+++ b/src/concurrent/qtconcurrentfunctionwrappers.h
@@ -190,7 +190,13 @@ struct ReduceResultTypeHelper<Callable,
// -- MapSequenceResultType
template <class InputSequence, class MapFunctor>
-struct MapSequenceResultType;
+struct MapSequenceResultType
+{
+ static_assert(std::is_same_v<typename InputSequence::value_type,
+ QtPrivate::MapResultType<InputSequence, MapFunctor>>,
+ "Couldn't deduce the output sequence type, you must specify it explicitly.");
+ typedef InputSequence ResultType;
+};
#ifndef QT_NO_TEMPLATE_TEMPLATE_PARAMETERS