Delen via


Compilerfout C2908

expliciete specialisatie; 'sjabloon' is al geïnstantieerd

Opmerkingen

Een specialisatie van de primaire sjabloon vindt plaats vóór de expliciete specialisatie.

Example

In het volgende voorbeeld wordt C2908 gegenereerd:

// C2908.cpp
// compile with: /c
template<class T> class X {};

void f() {
X<int> x;   //specialization and instantiation
            //of X<int>
}

template<> class X<int> {}  // C2908, explicit specialization