Compiler Error C2783
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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
© 2015 Microsoft