Белешка
Приступ овој страници захтева ауторизацију. Можете покушати да се пријавите или промените директоријуме.
Приступ овој страници захтева ауторизацију. Можете покушати да промените директоријуме.
explicit specialization; 'template' has already been instantiated
Remarks
A specialization of the primary template occurs before the explicit specialization.
Example
The following example generates C2908:
// 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