显式专用化;“specialization”已定义
不允许重复显式专用化。 有关详细信息,请参阅函数模板的显式专用化。
以下示例生成 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> {};