编译器错误 C2898

“declaration”: 成员函数模板不能是虚拟的

以下示例生成 C2898:

// C2898.cpp
// compile with: /c
class X {
public:
   template<typename T> virtual void f(T t) {}   // C2898
};