Algorithm: Fix build issue with MSVC2015

Be more specific on which overload to call.

Change-Id: Ie38252403774ea34c165daedd74c02bbed693439
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Eike Ziller
2016-07-14 14:46:35 +02:00
parent dd009004f5
commit defb18aef4

View File

@@ -246,7 +246,7 @@ template<template<typename> class C, // result container type
Q_REQUIRED_RESULT
auto transform(const SC<T> &container, R (S::*p)() const) -> ResultContainer<C, SC, T, R(S::*)() const>
{
return Utils::transform<C>(container, std::mem_fn(p));
return Utils::transform<C, SC, T>(container, std::mem_fn(p));
}
// same container type for input and output, e.g. transforming a QList<QString> into QList<int>