Compiler Error C2898
'declaration' : member function templates cannot be virtual
The following sample generates C2898:
// C2898.cpp
// compile with: /c
class X {
public:
template<typename T> virtual void f(T t) {} // C2898
};
เบราว์เซอร์นี้ไม่ได้รับการสนับสนุนอีกต่อไป
อัปเกรดเป็น Microsoft Edge เพื่อใช้ประโยชน์จากคุณลักษณะล่าสุด เช่น การอัปเดตความปลอดภัยและการสนับสนุนด้านเทคนิค
'declaration' : member function templates cannot be virtual
The following sample generates C2898:
// C2898.cpp
// compile with: /c
class X {
public:
template<typename T> virtual void f(T t) {} // C2898
};