Compiler Error C2946
explicit instantiation; 'class' is not a template-class specialization
You cannot explicitly instantiate a nontemplated class.
Example
The following sample generates C2946.
// C2946.cpp
class C {};
template C; // C2946
int main() {}
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