Export (0) Print
Expand All
Expand Minimize

Compiler Error C2780

'declaration' : expects value1 arguments - value2 provided

A function template has too few arguments.

The following sample generates C2780:

// C2780.cpp
template<typename T>
void f(T, T);

int main()
{
   f(1);  // C2780
}
Show:
© 2014 Microsoft