This documentation is archived and is not being maintained.

Compiler Error C2783

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

The compiler cannot determine a template argument.

The following sample generates C2783:

// C2783.cpp
template<typename T1, typename T2>
T1 f(T2);

int main()
{
   f(1); // C2783
}
Show: