Compiler Error C2950

 

'type' : cannot explicitly instantiate an explicit specialization

The compiler found an invalid explicit instantiation.

The following sample generates C2950:

// C2950.cpp
// compile with: /c
template <class T>
struct s;

template <>
struct s<int> {};

template struct s<int>;   // C2950 delete this instantiation
Show: