I am new to C++ and trying to implement a basic template class. I am using Visual Studio 2013 for reference. I can create the class, members and methods without issue. I can also init an instance with issue but as soon as I got to call a method off the class I get the following:
MyCppTestApp.obj : error LNK2019: unresolved external symbol "public: void __thiscall Test::Stack<int>::test(void)" (?test@?$Stack@H@Test@@QAEXXZ) referenced in function _wmain
Template implementations need to be accessible to the compiler at the point of compilation. What happens if you move the implementation into the header?