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
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for