Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
'identifier': explicit instantiation of function template requires return type
Remarks
An explicit instantiation of a function template requires explicit specification of its return type. Implicit return type specification does not work.
Example
The following example generates C2909:
// C2909.cpp
// compile with: /c
template<class T> int f(T);
template f<int>(int); // C2909
template int f<int>(int); // OK