I was just reading a post about template errors similar to my own, I read the solution to the problem and found it troubling.
Basically someone made a class and templated it.
Bleh.h
1 2 3 4 5 6 7 8
template<class t>
class Bleh{
public:
Bleh();
~Bleh();
};
#include "Bleh.cpp"
No. You must put template classes in the header file.
The reason is that templated functions are not "real" functions, only a template, so the compiler needs to see the entire body when you attempt to use one so it can create an instance of it for you.