If I have a header foo.h which I include all over my project, it seems to work fine when all it contains is:
template void foo(const T para