If you want to define the specialization in a .cpp file, you may have to instantiate the class to tell the compiler to compile the function. If the function isn't compiled, you'll get a linker error.
template class TClass<int>;
template <>
void TClass<int>::doSomething(std::vector<int> * v)
{
...
}