Export (0) Print
Expand All
Expand Minimize

Compiler Error C2946

Error Message

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() {}

Community Additions

ADD
Show:
© 2014 Microsoft