Compiler Error C3413
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3413.
name' : invalid explicit instantiation
The compiler detected an ill-formed explicit instantiation.
The following sample generates C3413:
// C3413.cpp
template
class MyClass {}; // C3413
Possible resolution:
// C3413b.cpp
// compile with: /c
template <class T>
class MyClass {};
template <>
class MyClass<int> {};
Show: