Possible Duplicate:
Where to define C++ class member template function and functors that instantiate it?
inclusion of header files in case of templates
I am using class templates. I have several methods in my my class and if I define them in the .cpp file I am getting the linker error
error LNK2019: unresolved external symbol
Do all methods in template classes need to be defined in the header file? It makes my code look yucky but if it's the only way I am fine with it.