Can I use a template function in a class that is exported from a DLL?