summaryrefslogtreecommitdiffstats
path: root/src/concurrent/qtconcurrentfunctionwrappers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/concurrent/qtconcurrentfunctionwrappers.h')
-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 194d020fb2..a00c1c6edc 100644
--- a/src/concurrent/qtconcurrentfunctionwrappers.h
+++ b/src/concurrent/qtconcurrentfunctionwrappers.h
@@ -146,7 +146,13 @@ struct ReduceResultType<T(C::*)(U) noexcept>
// -- 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;
+};
template <class MapFunctor>
struct MapSequenceResultType<QStringList, MapFunctor>