Compiler Error C2766
explicit specialization; 'specialization' has already been defined
Duplicate explicit specializations are not allowed. For more information, see Explicit Specialization of Function Templates.
The following sample 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> {};
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre