หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
explicit specialization; 'declaration' is not a specialization of a class template
Remarks
You cannot specialize a non-template class.
Example
The following example generates C2913:
// C2913.cpp
// compile with: /c
class X{};
template <class T> class Y{};
template<> class X<int> {}; // C2913
template<> class Y<int> {};