Delen via


Compilerfout C2909

'id': expliciete instantiƫring van functiesjabloon vereist retourtype

Opmerkingen

Voor een expliciete instantiƫring van een functiesjabloon is expliciete specificatie van het retourtype vereist. Impliciete specificatie van retourtype werkt niet.

Example

In het volgende voorbeeld wordt C2909 gegenereerd:

// C2909.cpp
// compile with: /c
template<class T> int f(T);
template f<int>(int);         // C2909
template int f<int>(int);   // OK