Compiler Error C2909
'identifier': explicit instantiation of function template requires return type
An explicit instantiation of a function template requires explicit specification of its return type. Implicit return type specification does not work.
The following sample generates C2909:
// C2909.cpp
// compile with: /c
template<class T> int f(T);
template f<int>(int); // C2909
template int f<int>(int); // OK
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir