Compiler Error C2783

'declaration' : could not deduce template argument for 'identifier'

A template argument cannot be deduced by the compiler. For example:

template<class T1, class T2> T1 f(T2){ }
f(1);

The type associated with template parameter T1 cannot be deduced from the function call.