Compiler Error C2995
'function' : function template has already been defined
Make sure that there is only one definition for each member function of a templated class.
The following sample generates C2995:
// C2995.cpp
// compile with: /c
template <class T>
void Test(T x){}
template <class T> void Test(T x){} // C2995
template <class T> void Test2(T x){} // OK
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