diff --git a/src/libs/utils/algorithm.h b/src/libs/utils/algorithm.h index 10593372771..a60878cb8e6 100644 --- a/src/libs/utils/algorithm.h +++ b/src/libs/utils/algorithm.h @@ -253,7 +253,7 @@ template class C, // result container type typename SC, // input container type typename F, // function type typename Value = typename std::decay_t::value_type, - typename Result = std::decay_t>, + typename Result = std::decay_t::type>, typename ResultContainer = C> Q_REQUIRED_RESULT decltype(auto) transform(SC &&container, F function); #ifdef Q_CC_CLANG @@ -270,7 +270,7 @@ template class C, // result container type typename SC, // input container type typename F, // function type typename Value = typename std::decay_t::value_type, - typename Result = std::decay_t>, + typename Result = std::decay_t::type>, typename ResultContainer = C>> Q_REQUIRED_RESULT decltype(auto) transform(SC &&container, F function); #endif