Merk
Tilgang til denne siden krever autorisasjon. Du kan prøve å logge på eller endre kataloger.
Tilgang til denne siden krever autorisasjon. Du kan prøve å endre kataloger.
explicit specialization; 'specialization' has already been defined
Remarks
Duplicate explicit specializations are not allowed. For more information, see Explicit Specialization of Function Templates.
Example
The following example generates C2766:
// C2766.cpp
// compile with: /c
template<class T>
struct A {};
template<>
struct A<int> {};
template<>
struct A<int> {}; // C2766
// try the following line instead
// struct A<char> {};