Kompilatorfel C2766

explicit specialisering; "specialisering" har redan definierats

Anmärkningar

Duplicerade explicita specialiseringar tillåts inte. För mer information, se Explicit specialisering av funktionsmallar.

Exempel

I följande exempel genereras 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> {};