Compiler Error C2782

'declaration' : template parameter 'identifier' is ambiguous

Compiler type deduction has detected that a template argument has an ambiguous type. For example:

template<class T> void f(T,T){ }
f(1, 'c');

The compiler is unable to deduce type T in the above function call, since the type T can be either int or char.