Information Systems



Why does VC++ give me undefined external errors with class templates?

Why does VC++ give me undefined external errors with class templates?

You probably need to explicitly define each class you're using the template for in the .cpp file. The compiler needs to know before hand.

template class MyClass<MyType>;