Delen via


Compilerfout C2906

'specialisatie': expliciete specialisatie vereist 'sjabloon <>'

Opmerkingen

U moet de nieuwe syntaxis gebruiken voor expliciete specialisatie van sjablonen.

Example

In het volgende voorbeeld wordt C2906 gegenereerd:

// C2906.cpp
// compile with: /c
template<class T> class X{};   // primary template
class X<int> { }   // C2906
template<> class X<int> { };   // new syntax