Original Post
I have a problem when seperating code and header in different files (.cpp/.h) of a template class.
For example:
//Part 1 should be in the header file
template<class T>
class Test {
public:
void test(void);
};
//Part 2 should be in the cpp file
template<class T>
void Test<T>::test(void) { ... }
If this example is put in one file everything compiles and links fine, but if I seperate the two parts I get a unresolved external linker error for every function of the class.
Is there a way to do this?
Thanks!
-Constantin
[edit: code tags don't work with < & >, use source tags]
[edited by - Magmai Kai Holmlor on February 1, 2004 3:09:32 PM]