The following code does not compile in VS 2010 Visual C++.
I get the error:
error LNK2019: unresolved external symbol "public: __thiscall testTemplate<double>::testTemplate<double>(void)" (??0?$testTemplate@N@@QAE@XZ) referenced in function _main main.obj
But if I move the code between
// Begin Comment
and
// End Comment
into the file main.cpp, the code compiles.
I am not sure why the compiler is complaining about the testTemplate class but not about the test class.