cpp file for templated class?
Hi!
if i have a class that is templated
is it then possible to have a .cpp file for its functions?
something like this?
test.h
1 2 3 4 5 6
|
template <typename T>
class test
{
public:
void somefunc();
}
|
test.cpp
1 2 3 4 5 6
|
#include "test.h"
void test::somefunc() //test<T>::somefunc() doesn't work either
{
}
|
(except this doesn't compile)
Topic archived. No new replies allowed.