Kompilatorfel C2898

"deklaration" : medlemsfunktionsmallar kan inte vara virtuella

Example

I följande exempel genereras C2898:

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