หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'name' : invalid template-parameter
Remarks
A template parameter list contains an identifier that wasn't a template parameter.
This error is obsolete in Visual Studio 2022 and later versions.
Example
The following example generates C2917.
// C2917.cpp
// compile with: /c
template<class T> class Vector {
void sort();
};
template<class T*> void Vector<T>::sort() {} // C2917
// try the following line instead
// template<class T> void Vector<T>::sort() {}