Compiler Error C2892
local class shall not have member templates
Templated member functions are not valid in a class that is defined in a function.
The following sample generates C2892:
// C2892.cpp
int main() {
struct local {
template<class T> // C2892
void f() {}
};
}
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