Error with a template function in a library

a template is a declaration and should be in .h file